Search in sources :

Example 1 with IndustrialSawmillRecipe

use of techreborn.api.recipe.machines.IndustrialSawmillRecipe 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);
}
Also used : IndustrialSawmillRecipe(techreborn.api.recipe.machines.IndustrialSawmillRecipe) FluidStack(net.minecraftforge.fluids.FluidStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

FluidStack (net.minecraftforge.fluids.FluidStack)1 ZenMethod (stanhebben.zenscript.annotations.ZenMethod)1 IndustrialSawmillRecipe (techreborn.api.recipe.machines.IndustrialSawmillRecipe)1