Elven Trade (Botania)
Description
Convert in any number of item inputs into an item output.
Identifier
Refer to this via any of the following:
mods.botania.elven_trade/* Used as page default */
mods.botania.elventrade
mods.botania.elvenTrade
mods.botania.ElvenTradeAdding Recipes
Add the given recipe to the recipe list:
groovymods.botania.elven_trade.add(RecipeElvenTrade)Adds recipes in the format
output,inputs:groovymods.botania.elven_trade.add(Collection<ItemStack>, Collection<IIngredient>)Adds recipes in the format
output,inputs:groovymods.botania.elven_trade.add(ItemStack, Collection<IIngredient>)Adds recipes in the format
output,inputs:groovymods.botania.elven_trade.add(ItemStack, IIngredient...)Adds recipes in the format
output,inputs:groovymods.botania.elven_trade.add(ItemStack[], IIngredient...)
Recipe Builder
Just like other recipe types, the Elven Trade 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.botania.elven_trade.recipeBuilder()
IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 99.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)ItemStackList. Sets the item outputs of the recipe. Requires greater than or equal to 1 and less than or equal to 99.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
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. (returnsnullorvazkii.botania.api.recipe.RecipeElvenTrade).groovyregister()
Example
mods.botania.elven_trade.recipeBuilder()
.input(ore('ingotGold'), ore('ingotIron'))
.output(item('botania:manaresource:7'))
.register()Removing Recipes
Removes the given recipe from the recipe list:
groovymods.botania.elven_trade.remove(RecipeElvenTrade)Removes all recipes that match the given input:
groovymods.botania.elven_trade.removeByInputs(IIngredient...)Removes all recipes that match the given output:
groovymods.botania.elven_trade.removeByOutputs(ItemStack...)Removes all registered recipes:
groovymods.botania.elven_trade.removeAll()
Example
mods.botania.elven_trade.removeByInputs(ore('ingotManasteel'))
mods.botania.elven_trade.removeByOutputs(item('botania:dreamwood'))
mods.botania.elven_trade.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.elven_trade.streamRecipes()
