示例#1
0
 public void registerOre(String name, Item item) {
   OreDictionary.registerOre(name, item);
 }
示例#2
0
 public static boolean stackMatchesOre(ItemStack stack, String name) {
   int id = OreDictionary.getOreID(stack);
   return id == OreDictionary.getOreID(name);
 }
示例#3
0
 public void registerOre(String name, Block block) {
   OreDictionary.registerOre(name, new ItemStack(block));
 }