Glowstone Extractor (Calculator)
Description
Converts an input itemstack into power, at the cost of a burnable fuel.
Identifier
Refer to this via any of the following:
mods.calculator.glowstone_extractor/* Used as page default */
mods.calculator.glowstoneextractor
mods.calculator.glowstoneExtractor
mods.calculator.GlowstoneExtractor
Adding Recipes
Recipe Builder
Just like other recipe types, the Glowstone Extractor also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.calculator.glowstone_extractor.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
int
. Sets the duration in ticks that power will be produced. Requires greater than or equal to 1. (Default0
).groovyvalue(int)
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
orsonar.core.recipes.DefaultSonarRecipe$Value
).groovyregister()
Example
mods.calculator.glowstone_extractor.recipeBuilder()
.input(item('minecraft:clay'))
.value(100)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.calculator.glowstone_extractor.removeByInput(IIngredient)
Removes all registered recipes:
groovymods.calculator.glowstone_extractor.removeAll()
Example
mods.calculator.glowstone_extractor.removeByInput(item('minecraft:glowstone'))
mods.calculator.glowstone_extractor.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.calculator.glowstone_extractor.streamRecipes()