Search in sources :

Example 1 with BreweryRecipe

use of binnie.extratrees.machines.brewery.recipes.BreweryRecipe in project Binnie by ForestryMC.

the class BreweryRecipeHandler method addRecipe.

@ZenMethod
public static void addRecipe(ILiquidStack input, ILiquidStack output, @Optional IItemStack yeast) {
    FluidStack inputStack = CraftTweakerUtil.getLiquidStack(input);
    FluidStack outputStack = CraftTweakerUtil.getLiquidStack(output);
    ItemStack yeastStack = ExtraTreeItems.YEAST.get(1);
    if (yeast != null) {
        yeastStack = CraftTweakerUtil.getItemStack(yeast);
    }
    addRecipe(new BreweryRecipe(inputStack, outputStack, yeastStack), ExtraTreesRecipeManager.breweryManager);
}
Also used : FluidStack(net.minecraftforge.fluids.FluidStack) ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) BreweryRecipe(binnie.extratrees.machines.brewery.recipes.BreweryRecipe) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

BreweryRecipe (binnie.extratrees.machines.brewery.recipes.BreweryRecipe)1 IItemStack (crafttweaker.api.item.IItemStack)1 ItemStack (net.minecraft.item.ItemStack)1 FluidStack (net.minecraftforge.fluids.FluidStack)1 ZenMethod (stanhebben.zenscript.annotations.ZenMethod)1