Search in sources :

Example 1 with IndustrialGrinderRecipe

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

Aggregations

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