Brew Recipe (Botania)
Description
Converts a non-infused Managlass Vial, Alfglass Flask, Incense Stick, or Tainted Blood Pendant into one infused to hold the given brew at the cost of item inputs and mana.
Identifier
Refer to this via any of the following:
mods.botania.brew_recipe/* Used as page default */
mods.botania.brewrecipe
mods.botania.brewRecipe
mods.botania.BrewRecipe
Adding Recipes
Add the given recipe to the recipe list:
groovymods.botania.brew_recipe.add(RecipeBrew)
Recipe Builder
Just like other recipe types, the Brew Recipe also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.botania.brew_recipe.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 6.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
Brew
. Sets the brew the recipe is being created for. Requires not null.groovybrew(Brew) output(Brew)
First validates the builder, returning
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
orvazkii.botania.api.recipe.RecipeBrew
).groovyregister()
Example
mods.botania.brew_recipe.recipeBuilder()
.input(item('minecraft:clay'), ore('ingotGold'), ore('gemDiamond'))
.brew(brew('absorption'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.botania.brew_recipe.remove(RecipeBrew)
Removes all recipes that match the given input:
groovymods.botania.brew_recipe.removeByInput(IIngredient...)
Removes all recipes that match the given input:
groovymods.botania.brew_recipe.removeByInputs(IIngredient...)
Removes all recipes that match the given output:
groovymods.botania.brew_recipe.removeByOutput(Brew)
Removes all recipes that match the given output:
groovymods.botania.brew_recipe.removeByOutput(String)
Removes all registered recipes:
groovymods.botania.brew_recipe.removeAll()
Example
mods.botania.brew_recipe.removeByInput(item('minecraft:iron_ingot'))
mods.botania.brew_recipe.removeByOutput(brew('allure'))
mods.botania.brew_recipe.removeByOutput('speed')
mods.botania.brew_recipe.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.botania.brew_recipe.streamRecipes()