All Downloads are FREE. Search and download functionalities are using the official Maven repository.

emu.grasscutter.game.props.ItemUseAction.ItemUseGrantSelectReward Maven / Gradle / Ivy

package emu.grasscutter.game.props.ItemUseAction;

import emu.grasscutter.game.props.ItemUseOp;

public class ItemUseGrantSelectReward extends ItemUseSelectItems {
    @Override
    public ItemUseOp getItemUseOp() {
        return ItemUseOp.ITEM_USE_ADD_SELECT_ITEM;
    }

    public ItemUseGrantSelectReward(String[] useParam) {
        String[] options = useParam[0].split(",");
        this.optionItemIds = new int[options.length];
        for (int i = 0; i < options.length; i++) {
            try {
                this.optionItemIds[i] = Integer.parseInt(options[i]);
            } catch (NumberFormatException ignored) {
                this.optionItemIds[i] = INVALID;
            }
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy