Purification Chamber (Mekanism)
Description
Converts an input itemstack and gasstack into an output itemstack.
Identifier
Refer to this via any of the following:
mods.mekanism.purification_chamber/* Used as page default */
mods.mekanism.purificationchamber
mods.mekanism.purificationChamber
mods.mekanism.PurificationChamber
mods.mekanism.purifier
mods.mekanism.Purifier
Adding Recipes
Adds recipes in the format
ingredient
,gasInput
,output
:groovymods.mekanism.purification_chamber.add(IIngredient, GasStack, ItemStack)
Example
mods.mekanism.purification_chamber.add(item('minecraft:diamond'), gas('oxygen'), item('minecraft:nether_star'))
Recipe Builder
Just like other recipe types, the Purification Chamber also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.mekanism.purification_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 inputs of the recipe. Requires exactly 1.groovygasInput(GasStack) gasInput(GasStack...) gasInput(Collection<GasStack>)
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.PurificationRecipe
).groovyregister()
Example
mods.mekanism.purification_chamber.recipeBuilder()
.input(item('minecraft:diamond'))
.gasInput(gas('deuterium'))
.output(item('minecraft:nether_star'))
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.mekanism.purification_chamber.removeByInput(IIngredient, GasStack)
Removes all registered recipes:
groovymods.mekanism.purification_chamber.removeAll()
Example
mods.mekanism.purification_chamber.removeByInput(item('mekanism:oreblock:0'), gas('oxygen'))
mods.mekanism.purification_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.purification_chamber.streamRecipes()