public final class Items
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ItemInfo |
get(net.minecraft.item.ItemStack stack)
Get a descriptor object for the block or item represented by the
specified item stack.
|
static ItemInfo |
get(java.lang.String name)
Get a descriptor object for the block or item with the specified name.
|
public static ItemInfo get(java.lang.String name)
API.items may not have been initialized
at that time. Only start calling these methods in the init phase or later.name - the name of the item to get the descriptor for.public static ItemInfo get(net.minecraft.item.ItemStack stack)
stack - the stack to get the descriptor for.