use of cn.nukkit.item.ItemSkull in project Nukkit by Nukkit.
the class BlockSkull method getDrops.
@Override
public Item[] getDrops(Item item) {
BlockEntity blockEntity = getLevel().getBlockEntity(this);
int dropMeta = 0;
if (blockEntity != null)
dropMeta = blockEntity.namedTag.getByte("SkullType");
return new Item[] { new ItemSkull(dropMeta) };
}
Aggregations