Wind Rune (EssentialCraft 4)
Description
Transforms various items using ESPE.
Identifier
Refer to this via any of the following:
mods.ec4.wind_rune
mods.ec4.windrune
mods.ec4.windRune
mods.ec4.WindRune
mods.essentialcraft.wind_rune/* Used as page default */
mods.essentialcraft.windrune
mods.essentialcraft.windRune
mods.essentialcraft.WindRune
Adding Recipes
Add the given recipe to the recipe list:
groovymods.essentialcraft.wind_rune.add(WindImbueRecipe)
Recipe Builder
Just like other recipe types, the Wind Rune also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.essentialcraft.wind_rune.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.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>)
int
. Sets the ESPE cost for this recipe. Requires greater than or equal to 1. (Default0
).groovyespe(int)
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
oressentialcraft.api.WindImbueRecipe
).groovyregister()
Example
mods.essentialcraft.wind_rune.recipeBuilder()
.input(item('minecraft:gold_block'))
.output(item('minecraft:diamond_block'))
.espe(500)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.essentialcraft.wind_rune.remove(WindImbueRecipe)
Removes all recipes that match the given input:
groovymods.essentialcraft.wind_rune.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.essentialcraft.wind_rune.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.essentialcraft.wind_rune.removeAll()
Example
mods.essentialcraft.wind_rune.removeByInput(item('minecraft:diamond'))
mods.essentialcraft.wind_rune.removeByOutput(item('essentialcraft:air_potion'))
mods.essentialcraft.wind_rune.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.essentialcraft.wind_rune.streamRecipes()