(ItemStack aStack, int aFoodValue, String aCannedName, IItemContainer... aCans)
| 738 | } |
| 739 | |
| 740 | public static boolean food_can(ItemStack aStack, int aFoodValue, String aCannedName, IItemContainer... aCans) { |
| 741 | if (ST.invalid(aStack) || aStack.getItem() == ItemsGT.CANS || IL.IC2_Food_Can_Filled.equal(aStack, T, T)) return F; |
| 742 | if (aFoodValue > 0) switch(aFoodValue / 2) { |
| 743 | case 0: case 1: return null != Canner.addRecipe2(T, 16, 16, aStack, IL.Food_Can_Empty.get(1), aCans[0].getWithName(1, aCannedName), ST.container(aStack, T)); |
| 744 | case 2: return null != Canner.addRecipe2(T, 16, 16, aStack, IL.Food_Can_Empty.get(1), aCans[1].getWithName(1, aCannedName), ST.container(aStack, T)); |
| 745 | case 3: return null != Canner.addRecipe2(T, 16, 16, aStack, IL.Food_Can_Empty.get(1), aCans[2].getWithName(1, aCannedName), ST.container(aStack, T)); |
| 746 | case 4: return null != Canner.addRecipe2(T, 16, 16, aStack, IL.Food_Can_Empty.get(1), aCans[3].getWithName(1, aCannedName), ST.container(aStack, T)); |
| 747 | case 5: return null != Canner.addRecipe2(T, 16, 16, aStack, IL.Food_Can_Empty.get(1), aCans[4].getWithName(1, aCannedName), ST.container(aStack, T)); |
| 748 | case 8: case 9: return null != Canner.addRecipe2(T, 16, 16, aStack, IL.Food_Can_Empty.get(2), aCans[3].getWithName(2, aCannedName), ST.container(aStack, T)); |
| 749 | case 10: case 11: return null != Canner.addRecipe2(T, 16, 16, aStack, IL.Food_Can_Empty.get(2), aCans[4].getWithName(2, aCannedName), ST.container(aStack, T)); |
| 750 | case 15: case 16: case 17: return null != Canner.addRecipe2(T, 16, 16, aStack, IL.Food_Can_Empty.get(3), aCans[4].getWithName(3, aCannedName), ST.container(aStack, T)); |
| 751 | case 20: case 21: case 22: case 23: return null != Canner.addRecipe2(T, 16, 16, aStack, IL.Food_Can_Empty.get(4), aCans[4].getWithName(4, aCannedName), ST.container(aStack, T)); |
| 752 | case 25: case 26: case 27: case 28: case 29: return null != Canner.addRecipe2(T, 16, 16, aStack, IL.Food_Can_Empty.get(5), aCans[4].getWithName(5, aCannedName), ST.container(aStack, T)); |
| 753 | default: return null != Canner.addRecipe2(T, 16, 16, aStack, IL.Food_Can_Empty.get(aFoodValue/12), aCans[5].getWithName(aFoodValue/12, aCannedName), ST.container(aStack, T)); |
| 754 | } |
| 755 | return F; |
| 756 | } |
| 757 | |
| 758 | public static boolean crop_veggie(ItemStack aStack, FL aFluid, long aAmount , long aChance, String aCannedName, int aAlcohol, int aCaffeine, int aDehydration, int aSugar, int aFat, int aRadiation) {return crop(aStack, aFluid , aAmount, IL.Remains_Veggie.get( 1), aChance, aCannedName, IL.CANS_VEGGIE , aAlcohol, aCaffeine, aDehydration, aSugar, aFat, aRadiation);} |
| 759 | public static boolean crop_veggie(ItemStack aStack, FL aFluid, long aAmount, ItemStack aRemains, long aChance, String aCannedName, int aAlcohol, int aCaffeine, int aDehydration, int aSugar, int aFat, int aRadiation) {return crop(aStack, aFluid , aAmount, aRemains , aChance, aCannedName, IL.CANS_VEGGIE , aAlcohol, aCaffeine, aDehydration, aSugar, aFat, aRadiation);} |
no test coverage detected