Java Code Examples for net.minecraft.item.Item.func_150891_b()

The following are Jave code examples for showing how to use func_150891_b() of the net.minecraft.item.Item class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: bit-client   File: ItemUtil.java   View Source Code Vote up 4 votes
public static int getIdFromItem(Item item) {
    return Item.func_150891_b(item);
}
 
Example 2
Project: bit-client   File: ItemUtil.java   View Source Code Vote up 4 votes
public static int getIdFromItem(ItemStack item) {
    return Item.func_150891_b(ItemUtil.getItemFromStack(item));
}