Dissolution Chamber (Mekanism)
Description
Converts an input itemstack into an output gasstack at the cost of 100mb of Sulfuric Acid.
Identifier
Refer to this via any of the following:
mods.mekanism.dissolution_chamber/* Used as page default */
mods.mekanism.dissolutionchamber
mods.mekanism.dissolutionChamber
mods.mekanism.DissolutionChamber
mods.mekanism.dissolver
mods.mekanism.Dissolver
Adding Recipes
Adds recipes in the format
ingredient
,output
:groovymods.mekanism.dissolution_chamber.add(IIngredient, GasStack)
Example
mods.mekanism.dissolution_chamber.add(item('minecraft:packed_ice'), gas('water'))
Recipe Builder
Just like other recipe types, the Dissolution Chamber also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.mekanism.dissolution_chamber.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
GasStackList
. Sets the gas outputs of the recipe. Requires exactly 1.groovygasOutput(GasStack) gasOutput(GasStack...) gasOutput(Collection<GasStack>)
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.DissolutionRecipe
).groovyregister()
Example
mods.mekanism.dissolution_chamber.recipeBuilder()
.input(item('minecraft:packed_ice'))
.gasOutput(gas('water') * 2000)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.mekanism.dissolution_chamber.removeByInput(IIngredient)
Removes all registered recipes:
groovymods.mekanism.dissolution_chamber.removeAll()
Example
mods.mekanism.dissolution_chamber.removeByInput(item('mekanism:oreblock:0'))
mods.mekanism.dissolution_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.dissolution_chamber.streamRecipes()