Frostfire (Bewitchment)
Description
Converts an input ingredient into an output itemstack once a second while inside a Frostfire block.
Identifier
Refer to this via any of the following:
mods.bewitchment.frostfire/* Used as page default */
mods.bewitchment.FrostfireAdding Recipes
Adds the recipe:
groovymods.bewitchment.frostfire.add(FrostfireRecipe)
Recipe Builder
Just like other recipe types, the Frostfire 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.bewitchment.frostfire.recipeBuilder()
ResourceLocation. Sets the Resource Location of the recipe.groovyname(String) name(ResourceLocation)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>)
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. (returnsnullorcom.bewitchment.api.registry.FrostfireRecipe).groovyregister()
Example
mods.bewitchment.frostfire.recipeBuilder()
.input(item('minecraft:water_bucket'))
.output(item('minecraft:ice'))
.register()Removing Recipes
Removes the recipe with the given Resource Location:
groovymods.bewitchment.frostfire.remove(ResourceLocation)Removes the recipe with the given String as its Resource Location:
groovymods.bewitchment.frostfire.remove(String)Removes the recipe:
groovymods.bewitchment.frostfire.remove(FrostfireRecipe)Removes all recipes that match the given input:
groovymods.bewitchment.frostfire.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.bewitchment.frostfire.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.bewitchment.frostfire.removeAll()
Example
mods.bewitchment.frostfire.removeByInput(item('minecraft:iron_ore'))
mods.bewitchment.frostfire.removeByOutput(item('bewitchment:cold_iron_ingot'))
mods.bewitchment.frostfire.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.bewitchment.frostfire.streamRecipes()
