public interface ItemInfo
Modifier and Type | Method and Description |
---|---|
net.minecraft.block.Block |
block()
Returns the block type of the represented item.
|
net.minecraft.item.ItemStack |
createItemStack(int size)
Creates a new item stack of the item represended by this descriptor.
|
net.minecraft.item.Item |
item()
Returns the item type of the represented item.
|
java.lang.String |
name()
The name of this item descriptor.
|
java.lang.String name()
Items.get(String)
. Useful for reverse-lookup when
retrieving the descriptor via an item stack.net.minecraft.block.Block block()
net.minecraft.item.Item item()
net.minecraft.item.ItemStack createItemStack(int size)
size
- the size of the item stack to create.