Purifier (The Betweenlands)
Description
Converts an input item into an output itemstack, consuming Sulfur and Swamp Water as fuel.
Identifier
Refer to this via any of the following:
mods.betweenlands.purifier
mods.betweenlands.Purifier
mods.thebetweenlands.purifier/* Used as page default */
mods.thebetweenlands.PurifierAdding Recipes
Add the given recipe to the recipe list:
groovymods.thebetweenlands.purifier.add(IPurifierRecipe)
Recipe Builder
Just like other recipe types, the Purifier 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.thebetweenlands.purifier.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>)
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. (returnsnullorthebetweenlands.api.recipes.IPurifierRecipe).groovyregister()
Example
mods.thebetweenlands.purifier.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.register()
mods.thebetweenlands.purifier.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.register()Removing Recipes
Removes the given recipe from the recipe list:
groovymods.thebetweenlands.purifier.remove(IPurifierRecipe)Removes all recipes that match the given input:
groovymods.thebetweenlands.purifier.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.thebetweenlands.purifier.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.thebetweenlands.purifier.removeAll()
Example
mods.thebetweenlands.purifier.removeByInput(item('thebetweenlands:items_misc:64'))
mods.thebetweenlands.purifier.removeByOutput(item('thebetweenlands:cragrock'))
mods.thebetweenlands.purifier.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.thebetweenlands.purifier.streamRecipes()
