Brewing Barrel (Rustic)
Description
Converts a fluid into another fluid after a long period of time. If the fluid is an instanceof FluidBooze, has a variable Quality that can be refined through further cycles of conversion.
Identifier
Refer to this via any of the following:
mods.rustic.brewing_barrel/* Used as page default */
mods.rustic.brewingbarrel
mods.rustic.brewingBarrel
mods.rustic.BrewingBarrelAdding Recipes
Add the given recipe to the recipe list:
groovymods.rustic.brewing_barrel.add(IBrewingBarrelRecipe)
Recipe Builder
Just like other recipe types, the Brewing Barrel also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.rustic.brewing_barrel.recipeBuilder()
FluidStackList. Sets the fluid inputs of the recipe. Requires exactly 1.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)FluidStackList. Sets the fluid outputs of the recipe. Requires exactly 1.groovyfluidOutput(FluidStack) fluidOutput(FluidStack...) fluidOutput(Collection<FluidStack>)
First validates the builder, returning
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullorrustic.common.crafting.IBrewingBarrelRecipe).groovyregister()
Example
mods.rustic.brewing_barrel.recipeBuilder()
.fluidInput(fluid('ironberryjuice'))
.fluidOutput(fluid('lava'))
.register()
mods.rustic.brewing_barrel.recipeBuilder()
.fluidInput(fluid('water'))
.fluidOutput(fluid('lava'))
.register()Removing Recipes
Removes the given recipe from the recipe list:
groovymods.rustic.brewing_barrel.remove(IBrewingBarrelRecipe)Removes all recipes that match the given input:
groovymods.rustic.brewing_barrel.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.rustic.brewing_barrel.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.rustic.brewing_barrel.removeAll()
Example
mods.rustic.brewing_barrel.removeByInput(fluid('ironberryjuice'))
mods.rustic.brewing_barrel.removeByOutput(fluid('ale'))
mods.rustic.brewing_barrel.removeAll()Getting the value of recipes
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.rustic.brewing_barrel.streamRecipes()
