Conductor Mast (Calculator)
Description
Converts an input itemstack into an output itemstack, costing a configurable amount of power. This power can only be gained via the Conductor Mast's semi-regular generation of lightning strikes.
Identifier
Refer to this via any of the following:
mods.calculator.conductor_mast/* Used as page default */
mods.calculator.conductormast
mods.calculator.conductorMast
mods.calculator.ConductorMast
Adding Recipes
Recipe Builder
Just like other recipe types, the Conductor Mast also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.calculator.conductor_mast.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>)
int
. Sets the amount of power required to make the conversion. 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.conductor_mast.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.value(100)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.calculator.conductor_mast.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.calculator.conductor_mast.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.calculator.conductor_mast.removeAll()
Example
mods.calculator.conductor_mast.removeByInput(item('calculator:firediamond'))
mods.calculator.conductor_mast.removeByOutput(item('calculator:material:7'))
mods.calculator.conductor_mast.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.conductor_mast.streamRecipes()