Livingrock Pedestal (Extra Botany)
Description
Converts an input item into an output itemstack when placed inside a Livingrock Pedestal and interacted with by an Extra Botany Hammer.
Identifier
Refer to this via any of the following:
mods.extrabotany.pedestal/* Used as page default */
mods.extrabotany.Pedestal
Adding Recipes
Add the given recipe to the recipe list:
groovymods.extrabotany.pedestal.add(RecipePedestal)
Adds recipes in the format
input
,output
:groovymods.extrabotany.pedestal.add(IIngredient, ItemStack)
Recipe Builder
Just like other recipe types, the Livingrock Pedestal also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.extrabotany.pedestal.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
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
orcom.meteor.extrabotany.common.crafting.recipe.RecipePedestal
).groovyregister()
Example
mods.extrabotany.pedestal.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:gold_ingot'))
.register()
mods.extrabotany.pedestal.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:diamond') * 2)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.extrabotany.pedestal.remove(RecipePedestal)
Removes all recipes that match the given input:
groovymods.extrabotany.pedestal.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.extrabotany.pedestal.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.extrabotany.pedestal.removeAll()
Example
mods.extrabotany.pedestal.removeByInput(item('minecraft:cobblestone'))
mods.extrabotany.pedestal.removeByOutput(item('minecraft:flint'))
mods.extrabotany.pedestal.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.extrabotany.pedestal.streamRecipes()