Petal Apothecary (Botania)
Description
Converts item inputs into an item output consuming water and a seed.
Identifier
Refer to this via any of the following:
mods.botania.apothecary/* Used as page default */
mods.botania.Apothecary
mods.botania.petal_apothecary
mods.botania.petalapothecary
mods.botania.petalApothecary
mods.botania.PetalApothecary
Adding Recipes
Add the given recipe to the recipe list:
groovymods.botania.apothecary.add(RecipePetals)
Adds recipes in the format
output
,inputs
:groovymods.botania.apothecary.add(ItemStack, IIngredient...)
Recipe Builder
Just like other recipe types, the Petal Apothecary also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.botania.apothecary.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 20.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
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.RecipePetals
).groovyregister()
Example
mods.botania.apothecary.recipeBuilder()
.input(ore('blockGold'), ore('ingotIron'), item('minecraft:apple'))
.output(item('minecraft:golden_apple'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.botania.apothecary.remove(RecipePetals)
Removes all recipes that match the given input:
groovymods.botania.apothecary.removeByInput(IIngredient...)
Removes all recipes that match the given input:
groovymods.botania.apothecary.removeByInputs(IIngredient...)
Removes all recipes that match the given output:
groovymods.botania.apothecary.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.botania.apothecary.removeAll()
Example
mods.botania.apothecary.removeByInput(ore('runeFireB'))
mods.botania.apothecary.removeByInputs(ore('petalYellow'), ore('petalBrown'))
mods.botania.apothecary.removeByOutput(item('botania:specialflower').withNbt(['type': 'puredaisy']))
mods.botania.apothecary.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.apothecary.streamRecipes()