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

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

package emu.grasscutter.game.props.ItemUseAction;

import emu.grasscutter.game.props.ItemUseOp;

public class ItemUseGainNameCard extends ItemUseAction {
    @Override
    public ItemUseOp getItemUseOp() {
        return ItemUseOp.ITEM_USE_GAIN_NAME_CARD;
    }

    public ItemUseGainNameCard(String[] useParam) {
    }

    @Override
    public boolean useItem(UseItemParams params) {
        params.player.addNameCard(params.usedItemId);
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy