Search in sources :

Example 6 with ZenMethod

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

Example 7 with ZenMethod

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

Example 8 with ZenMethod

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));
}
Also used : FusionReactorRecipe(techreborn.api.reactor.FusionReactorRecipe) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 9 with ZenMethod

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);
}
Also used : GrinderRecipe(techreborn.api.recipe.machines.GrinderRecipe) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 10 with ZenMethod

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);
}
Also used : ImplosionCompressorRecipe(techreborn.api.recipe.machines.ImplosionCompressorRecipe) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

ZenMethod (stanhebben.zenscript.annotations.ZenMethod)67 ItemStack (net.minecraft.item.ItemStack)23 IItemStack (crafttweaker.api.item.IItemStack)14 FluidStack (net.minecraftforge.fluids.FluidStack)7 PharmacologyEffect (minechem.potion.PharmacologyEffect)6 IItemStack (minetweaker.api.item.IItemStack)6 PotionChemical (minechem.potion.PotionChemical)4 NetRecipe (betterwithaddons.crafting.recipes.NetRecipe)3 CherryBoxRecipe (betterwithaddons.crafting.recipes.CherryBoxRecipe)2 GristSet (com.mraof.minestuck.util.GristSet)2 IAction (crafttweaker.IAction)2 ChemicalRoomStateEnum (minechem.item.ChemicalRoomStateEnum)2 PackingRecipe (betterwithaddons.crafting.recipes.PackingRecipe)1 SmeltingRecipe (betterwithaddons.crafting.recipes.SmeltingRecipe)1 SpindleRecipe (betterwithaddons.crafting.recipes.SpindleRecipe)1 WoodHardness (betterwithaddons.handler.StumpingHandler.WoodHardness)1 ItemMaterial (betterwithaddons.item.ItemMaterial)1 TreeFood (betterwithaddons.tileentity.TileEntityLureTree.TreeFood)1 IngredientCraftTweaker (betterwithaddons.util.IngredientCraftTweaker)1 BrewedGrainRecipe (binnie.extratrees.machines.brewery.recipes.BrewedGrainRecipe)1