Offering Altar (The Erebus)
Description
Converts up to 3 input itemstacks into an output itemstack.
Identifier
Refer to this via any of the following:
mods.erebus.offering_altar/* Used as page default */
mods.erebus.offeringaltar
mods.erebus.offeringAltar
mods.erebus.OfferingAltarAdding Recipes
Add the given recipe to the recipe list:
groovymods.erebus.offering_altar.add(OfferingAltarRecipe)
Recipe Builder
Just like other recipe types, the Offering Altar 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.erebus.offering_altar.recipeBuilder()
IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 3.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. (returnsnullorerebus.recipes.OfferingAltarRecipe).groovyregister()
Example
mods.erebus.offering_altar.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.register()
mods.erebus.offering_altar.recipeBuilder()
.input(item('minecraft:stone'), ore('gemDiamond'), item('minecraft:clay'))
.output(item('minecraft:gold_ingot'))
.register()Removing Recipes
Removes the given recipe from the recipe list:
groovymods.erebus.offering_altar.remove(OfferingAltarRecipe)Removes all recipes that match the given input:
groovymods.erebus.offering_altar.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.erebus.offering_altar.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.erebus.offering_altar.removeAll()
Example
mods.erebus.offering_altar.removeByInput(item('minecraft:emerald'))
mods.erebus.offering_altar.removeByOutput(item('erebus:materials', 38))
mods.erebus.offering_altar.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.erebus.offering_altar.streamRecipes()
