Enrichment Chamber (Mekanism)
Description
Converts an input itemstack into an output itemstack.
Identifier
Refer to this via any of the following:
mods.mekanism.enrichment_chamber/* Used as page default */
mods.mekanism.enrichmentchamber
mods.mekanism.enrichmentChamber
mods.mekanism.EnrichmentChamber
mods.mekanism.enricher
mods.mekanism.Enricher
Adding Recipes
Adds recipes in the format
ingredient
,output
:groovymods.mekanism.enrichment_chamber.add(IIngredient, ItemStack)
Example
mods.mekanism.enrichment_chamber.add(item('minecraft:clay_ball'), item('minecraft:nether_star'))
Recipe Builder
Just like other recipe types, the Enrichment Chamber also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.mekanism.enrichment_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>)
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
ormekanism.common.recipe.machines.EnrichmentRecipe
).groovyregister()
Example
mods.mekanism.enrichment_chamber.recipeBuilder()
.input(item('minecraft:clay_ball'))
.output(item('minecraft:nether_star'))
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.mekanism.enrichment_chamber.removeByInput(IIngredient)
Removes all registered recipes:
groovymods.mekanism.enrichment_chamber.removeAll()
Example
mods.mekanism.enrichment_chamber.removeByInput(item('minecraft:diamond'))
mods.mekanism.enrichment_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.mekanism.enrichment_chamber.streamRecipes()