use of stanhebben.zenscript.annotations.ZenMethod in project TechReborn by TechReborn.
the class CTIndustrialGrinder method addRecipe.
/**
* Add recipe for Industrial Grinder
* @param output1 ItemStack First recipe output
* @param output2 ItemStack Second recipe output
* @param output3 ItemStack Third recipe output
* @param output4 ItemStack Fourth recipe output
* @param input1 First recipe input
* @param input2 Second recipe input. Not used )
* @param fluid LiquidStack Liquid used for grinding
* @param ticktime Amount of ticks to complete crafting
* @param euTick Amount of EU per tick consumed during crafting
*/
@ZenMethod
public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient input1, IIngredient input2, ILiquidStack fluid, int ticktime, int euTick) {
Object oInput1 = CraftTweakerCompat.toObject(input1);
// There is only one input slot in Industrial Grinder
// ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2);
FluidStack fluidStack = null;
if (fluid != null) {
fluidStack = CraftTweakerCompat.toFluidStack(fluid);
}
IndustrialGrinderRecipe r = new IndustrialGrinderRecipe(oInput1, fluidStack, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), CraftTweakerCompat.toStack(output3), CraftTweakerCompat.toStack(output4), ticktime, euTick);
addRecipe(r);
}
use of stanhebben.zenscript.annotations.ZenMethod in project TechReborn by TechReborn.
the class CTIndustrialSawmill method addRecipe.
@ZenMethod
public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IIngredient input1, ILiquidStack fluid, int ticktime, int euTick, boolean useOreDic) {
Object oInput1 = CraftTweakerCompat.toObject(input1);
FluidStack fluidStack = null;
if (fluid != null) {
fluidStack = CraftTweakerCompat.toFluidStack(fluid);
}
IndustrialSawmillRecipe r = new IndustrialSawmillRecipe(oInput1, fluidStack, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), CraftTweakerCompat.toStack(output3), ticktime, euTick, useOreDic);
addRecipe(r);
}
use of stanhebben.zenscript.annotations.ZenMethod in project TechReborn by TechReborn.
the class CTFusionReactor method addRecipe.
@ZenMethod
public static void addRecipe(IIngredient topInput, IIngredient bottomInput, IItemStack output, int startEU, int euTick, int tickTime) {
FusionReactorRecipe reactorRecipe = new FusionReactorRecipe((ItemStack) CraftTweakerCompat.toObject(topInput), (ItemStack) CraftTweakerCompat.toObject(bottomInput), CraftTweakerCompat.toStack(output), startEU, euTick, tickTime);
CraftTweakerAPI.apply(new Add(reactorRecipe));
}
use of stanhebben.zenscript.annotations.ZenMethod in project TechReborn by TechReborn.
the class CTGrinder method addRecipe.
@ZenMethod
public static void addRecipe(IItemStack output, IIngredient input1, int ticktime, int euTick) {
Object oInput1 = CraftTweakerCompat.toObject(input1);
GrinderRecipe r = new GrinderRecipe(oInput1, CraftTweakerCompat.toStack(output), ticktime, euTick);
addRecipe(r);
}
use of stanhebben.zenscript.annotations.ZenMethod in project TechReborn by TechReborn.
the class CTImplosionCompressor method addRecipe.
@ZenMethod
public static void addRecipe(IItemStack output1, IItemStack output2, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
Object oInput1 = CraftTweakerCompat.toObject(input1);
Object oInput2 = CraftTweakerCompat.toObject(input2);
ImplosionCompressorRecipe r = new ImplosionCompressorRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), ticktime, euTick);
addRecipe(r);
}
Aggregations