Druid Altar (The Betweenlands)
Description
Converts 4 input items into an output itemstack.
Warning
The 4 sapling recipe to reactivate the Druid Altar recipe will always appear in JEI, even if it has been removed. Additionally, this recipe cannot be removed via removeByInput
or removeByOutput
.
Identifier
Refer to this via any of the following:
mods.betweenlands.druid_altar
mods.betweenlands.druidaltar
mods.betweenlands.druidAltar
mods.betweenlands.DruidAltar
mods.thebetweenlands.druid_altar/* Used as page default */
mods.thebetweenlands.druidaltar
mods.thebetweenlands.druidAltar
mods.thebetweenlands.DruidAltar
Adding Recipes
Add the given recipe to the recipe list:
groovymods.thebetweenlands.druid_altar.add(IDruidAltarRecipe)
Recipe Builder
Just like other recipe types, the Druid Altar also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.thebetweenlands.druid_altar.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 4.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
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
orthebetweenlands.api.recipes.IDruidAltarRecipe
).groovyregister()
Example
mods.thebetweenlands.druid_altar.recipeBuilder()
.input(item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'), item('minecraft:clay'))
.output(item('minecraft:diamond'))
.register()
mods.thebetweenlands.druid_altar.recipeBuilder()
.input(item('minecraft:diamond'), item('minecraft:gold_block'), item('minecraft:gold_ingot'), item('minecraft:clay'))
.output(item('minecraft:clay'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.thebetweenlands.druid_altar.remove(IDruidAltarRecipe)
Removes all recipes that match the given input:
groovymods.thebetweenlands.druid_altar.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.thebetweenlands.druid_altar.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.thebetweenlands.druid_altar.removeAll()
Example
mods.thebetweenlands.druid_altar.removeByInput(item('thebetweenlands:swamp_talisman:1'))
mods.thebetweenlands.druid_altar.removeByOutput(item('thebetweenlands:swamp_talisman'))
mods.thebetweenlands.druid_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.thebetweenlands.druid_altar.streamRecipes()