Search in sources :

Example 1 with ChemicalReactorRecipe

use of techreborn.api.recipe.machines.ChemicalReactorRecipe in project TechReborn by TechReborn.

the class MTChemicalReactor method addRecipe.

@ZenMethod
public static void addRecipe(IItemStack output1, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
    ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
    ItemStack oInput2 = (ItemStack) MinetweakerCompat.toObject(input2);
    ChemicalReactorRecipe r = new ChemicalReactorRecipe(oInput1, oInput2, MinetweakerCompat.toStack(output1), ticktime, euTick);
    addRecipe(r);
}
Also used : ChemicalReactorRecipe(techreborn.api.recipe.machines.ChemicalReactorRecipe) IItemStack(minetweaker.api.item.IItemStack) ItemStack(net.minecraft.item.ItemStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 2 with ChemicalReactorRecipe

use of techreborn.api.recipe.machines.ChemicalReactorRecipe in project TechReborn by TechReborn.

the class CTChemicalReactor method addRecipe.

@ZenMethod
public static void addRecipe(IItemStack output1, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
    Object oInput1 = CraftTweakerCompat.toObject(input1);
    Object oInput2 = CraftTweakerCompat.toObject(input2);
    ChemicalReactorRecipe r = new ChemicalReactorRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), ticktime, euTick);
    addRecipe(r);
}
Also used : ChemicalReactorRecipe(techreborn.api.recipe.machines.ChemicalReactorRecipe) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

ZenMethod (stanhebben.zenscript.annotations.ZenMethod)2 ChemicalReactorRecipe (techreborn.api.recipe.machines.ChemicalReactorRecipe)2 IItemStack (minetweaker.api.item.IItemStack)1 ItemStack (net.minecraft.item.ItemStack)1