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; }
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; }