예제 #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));
 }