Search in sources :

Example 1 with BottlingMachineRecipe

use of blusunrize.immersiveengineering.api.crafting.BottlingMachineRecipe in project ImmersiveEngineering by BluSunrize.

the class BottlingMachine method addRecipe.

@ZenMethod
public static void addRecipe(IItemStack output, IIngredient input, ILiquidStack fluid) {
    Object oInput = CraftTweakerHelper.toObject(input);
    if (oInput == null || output == null || fluid == null)
        return;
    BottlingMachineRecipe r = new BottlingMachineRecipe(CraftTweakerHelper.toStack(output), oInput, CraftTweakerHelper.toFluidStack(fluid));
    MineTweakerAPI.apply(new Add(r));
}
Also used : BottlingMachineRecipe(blusunrize.immersiveengineering.api.crafting.BottlingMachineRecipe) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

BottlingMachineRecipe (blusunrize.immersiveengineering.api.crafting.BottlingMachineRecipe)1 ZenMethod (stanhebben.zenscript.annotations.ZenMethod)1