Add RecipeSettings to CraftTweaker supports, allows disabling oredict checking.
Closes #1455
This commit is contained in:
parent
d563ff748a
commit
087a2226d6
14 changed files with 55 additions and 21 deletions
|
@ -40,13 +40,14 @@ import techreborn.api.recipe.machines.DistillationTowerRecipe;
|
|||
public class CTDistillationTower extends CTGeneric {
|
||||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
|
||||
public static RecipeSettings addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
Object oInput2 = CraftTweakerCompat.toObject(input2);
|
||||
|
||||
DistillationTowerRecipe r = new DistillationTowerRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), CraftTweakerCompat.toStack(output3), CraftTweakerCompat.toStack(output4), ticktime, euTick);
|
||||
|
||||
addRecipe(r);
|
||||
return new RecipeSettings(r);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue