Search in sources :

Example 1 with BrewedGrainRecipe

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

the class BreweryRecipeHandler method addGrainRecipe.

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

Aggregations

BrewedGrainRecipe (binnie.extratrees.machines.brewery.recipes.BrewedGrainRecipe)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