Stone Separator (Calculator)
Description
Converts an input itemstack into two output itemstacks.
Identifier
Refer to this via any of the following:
mods.calculator.stone_separator/* Used as page default */
mods.calculator.stoneseparator
mods.calculator.stoneSeparator
mods.calculator.StoneSeparator
Adding Recipes
Add the given recipe to the recipe list:
groovymods.calculator.stone_separator.add(CalculatorRecipe)
Recipe Builder
Just like other recipe types, the Stone Separator also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.calculator.stone_separator.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 2.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
orsonar.calculator.mod.common.recipes.CalculatorRecipe
).groovyregister()
Example
mods.calculator.stone_separator.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'), item('minecraft:diamond'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.calculator.stone_separator.remove(CalculatorRecipe)
Removes all recipes that match the given input:
groovymods.calculator.stone_separator.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.calculator.stone_separator.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.calculator.stone_separator.removeAll()
Example
mods.calculator.stone_separator.removeByInput(item('minecraft:gold_ore'))
mods.calculator.stone_separator.removeByOutput(item('calculator:reinforcedironingot'))
mods.calculator.stone_separator.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.stone_separator.streamRecipes()