use of blusunrize.immersiveengineering.api.crafting.MetalPressRecipe in project ImmersiveEngineering by BluSunrize.
the class MetalPress method addRecipe.
@ZenMethod
public static void addRecipe(IItemStack output, IIngredient input, IItemStack mold, int energy, @Optional int inputSize) {
Object oInput = CraftTweakerHelper.toObject(input);
if (oInput == null)
return;
ItemStack sOut = CraftTweakerHelper.toStack(output);
ItemStack sMold = CraftTweakerHelper.toStack(mold);
if (sOut != null && sMold != null) {
MetalPressRecipe r = new MetalPressRecipe(sOut, oInput, sMold, energy);
if (inputSize > 0)
r.setInputSize(inputSize);
MineTweakerAPI.apply(new Add(r));
}
}
Aggregations