cn.nukkit.item.ItemNetherWart Maven / Gradle / Ivy
package cn.nukkit.item;
import cn.nukkit.block.BlockID;
import cn.nukkit.blockstate.BlockState;
/**
* @author Leonidius20
* @since 22.03.17
*/
public class ItemNetherWart extends Item {
public ItemNetherWart() {
this(0, 1);
}
public ItemNetherWart(Integer meta) {
this(meta, 1);
}
public ItemNetherWart(Integer meta, int count) {
super(NETHER_WART, meta, count, "Nether Wart");
this.block = BlockState.of(BlockID.NETHER_WART_BLOCK, meta).getBlock();
}
@Override
public void setDamage(Integer meta) {
block.setDataStorageFromInt(meta != null? meta : 0);
super.setDamage(meta);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy