Analysing Chamber (Calculator)
Description
Takes a non-analysed Circuit and analyses it, converting it into usable Stable or Analysed Circuit. Will produce power and item outputs based on randomly generated NBT data.
Note
When a void upgrade is installed in the Analysing Chamber, slots 1 and 2 will be voided as trash, but 3, 4, 5, and 6 will continue giving outputs.
Warning
JEI incorrectly represents the chance to obtain an output. 6% is actually 2%, 0.2% is actually 1%, 0.1% is correct, 0.02% is actually 0.05%, 0.001% is correct, and 0% is actually 0.005%.
Identifier
Refer to this via any of the following:
mods.calculator.analysing_chamber/* Used as page default */
mods.calculator.analysingchamber
mods.calculator.analysingChamber
mods.calculator.AnalysingChamber
mods.calculator.analyzing_chamber
mods.calculator.analyzingchamber
mods.calculator.analyzingChamber
mods.calculator.AnalyzingChamber
Adding Recipes
Add the given recipe to the recipe list:
groovymods.calculator.analysing_chamber.add(CalculatorRecipe)
Recipe Builder
Just like other recipe types, the Analysing Chamber also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.calculator.analysing_chamber.recipeBuilder()
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. What pool the output is in. Requires greater than or equal to 1 and less than or equal to 6. (Default0
).groovyslot(int)
int
. Specific number to be rolled to gain the output. Duplicate numbers are not validated, and will not be output. Requires greater than or equal to 1 and less than or equal to 20000. (Default0
).groovylocation(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.calculator.mod.common.recipes.CalculatorRecipe
).groovyregister()
Example
mods.calculator.analysing_chamber.recipeBuilder()
.slot(6)
.location(1)
.output(item('minecraft:diamond'))
.register()
mods.calculator.analysing_chamber.recipeBuilder()
.slot(1)
.location(18)
.output(item('minecraft:clay'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.calculator.analysing_chamber.remove(CalculatorRecipe)
Removes all recipes that match the given output:
groovymods.calculator.analysing_chamber.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.calculator.analysing_chamber.removeAll()
Example
mods.calculator.analysing_chamber.removeByOutput(item('sonarcore:reinforceddirtblock'))
mods.calculator.analysing_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.analysing_chamber.streamRecipes()