Exemplo n.º 1
0
 public static ReikaTreeHelper getTreeFromLeaf(ItemStack leaf) {
   for (int i = 0; i < treeList.length; i++) {
     for (int k = 0; k < treeList[i].leafMeta.length; k++) {
       if (ReikaItemHelper.matchStacks(leaf, treeList[i].getDamagedLeaf(k))) return treeList[i];
     }
   }
   return null;
 }
Exemplo n.º 2
0
 public static ReikaTreeHelper getTree(ItemStack wood) {
   for (int i = 0; i < treeList.length; i++) {
     for (int k = 0; k < treeList[i].logMeta.length; k++) {
       if (ReikaItemHelper.matchStacks(wood, treeList[i].getDamagedLog(k))) return treeList[i];
     }
   }
   return null;
 }