Extraction Chamber (Calculator)
Description
Converts an input itemstack into an output itemstack, and gives either a Dirty or Damaged Circuit.
Identifier
Refer to this via any of the following:
mods.calculator.extraction_chamber/* Used as page default */
mods.calculator.extractionchamber
mods.calculator.extractionChamber
mods.calculator.ExtractionChamberAdding Recipes
Add the given recipe to the recipe list:
groovymods.calculator.extraction_chamber.add(CalculatorRecipe)
Recipe Builder
Just like other recipe types, the Extraction Chamber also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.calculator.extraction_chamber.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>)boolean. Sets if the Circuit is a Damaged Circuit or a Dirty Circuit. (Defaultfalse).groovyisDamaged() isDamaged(boolean)
First validates the builder, returning
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullorsonar.calculator.mod.common.recipes.CalculatorRecipe).groovyregister()
Example
mods.calculator.extraction_chamber.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.register()
mods.calculator.extraction_chamber.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.isDamaged()
.register()Removing Recipes
Removes the given recipe from the recipe list:
groovymods.calculator.extraction_chamber.remove(CalculatorRecipe)Removes all recipes that match the given input:
groovymods.calculator.extraction_chamber.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.calculator.extraction_chamber.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.calculator.extraction_chamber.removeAll()
Example
mods.calculator.extraction_chamber.removeByInput(item('minecraft:dirt'))
mods.calculator.extraction_chamber.removeByOutput(item('calculator:smallstone'))
mods.calculator.extraction_chamber.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.extraction_chamber.streamRecipes()
