MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / crop

Method crop

src/main/java/gregapi/data/RM.java:769–769  ·  view source on GitHub ↗
(ItemStack aStack, FL aFluid, long aAmount, ItemStack aRemains, long aChance, String aCannedName, IItemContainer[] aCans, int aAlcohol, int aCaffeine, int aDehydration, int aSugar, int aFat)

Source from the content-addressed store, hash-verified

767 public static boolean crop_nut (ItemStack aStack , long aAmount, ItemStack aRemains, long aChance, String aCannedName ) {return crop(aStack, FL.Oil_Nut, aAmount, aRemains , aChance, aCannedName, IL.CANS_UNDEFINED, 0, 0, 0, 0,16,0);}
768
769 public static boolean crop(ItemStack aStack, FL aFluid, long aAmount, ItemStack aRemains, long aChance, String aCannedName, IItemContainer[] aCans, int aAlcohol, int aCaffeine, int aDehydration, int aSugar, int aFat) {return crop(aStack, aFluid, aAmount, aRemains, aChance, aCannedName, aCans, aAlcohol, aCaffeine, aDehydration, aSugar, aFat, 0);}
770 public static boolean crop(ItemStack aStack, FL aFluid, long aAmount, ItemStack aRemains, long aChance, String aCannedName, IItemContainer[] aCans, int aAlcohol, int aCaffeine, int aDehydration, int aSugar, int aFat, int aRadiation) {
771 if (aCans != null && UT.Code.stringValid(aCannedName)) food_can(aStack, Math.max(1, ST.food(aStack)), aCannedName, aCans);
772 if (aFluid != null) Squeezer.addRecipe1(T, 16, 16, aChance-1000 , aStack, NF, (aFluid.exists()?aFluid:FL.Juice).make(aAmount) , aRemains);

Callers 4

crop_veggieMethod · 0.95
crop_fruitMethod · 0.95
crop_nutMethod · 0.95
onOreRegistrationMethod · 0.95

Calls 8

food_canMethod · 0.95
foodMethod · 0.95
putMethod · 0.95
stringValidMethod · 0.80
addRecipe1Method · 0.80
existsMethod · 0.65
getItemMethod · 0.65
makeMethod · 0.45

Tested by

no test coverage detected