Add RecipeSettings to CraftTweaker supports, allows disabling oredict checking.

Closes #1455
This commit is contained in:
modmuss50 2018-04-01 23:50:54 +01:00
parent d563ff748a
commit 087a2226d6
14 changed files with 55 additions and 21 deletions

View file

@ -36,13 +36,14 @@ import techreborn.api.recipe.machines.BlastFurnaceRecipe;
public class CTBlastFurnace extends CTGeneric {
@ZenMethod
public static void addRecipe(IItemStack output1, IItemStack output2, IIngredient input1, IIngredient input2, int ticktime, int euTick, int neededHeat) {
public static RecipeSettings addRecipe(IItemStack output1, IItemStack output2, IIngredient input1, IIngredient input2, int ticktime, int euTick, int neededHeat) {
Object oInput1 = CraftTweakerCompat.toObject(input1);
Object oInput2 = CraftTweakerCompat.toObject(input2);
BlastFurnaceRecipe r = new BlastFurnaceRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), ticktime, euTick, neededHeat);
addRecipe(r);
return new RecipeSettings(r);
}
@ZenMethod