Chemical Oxidizer (Mekanism)
Description
Converts an input itemstack into an output gasstack.
Identifier
Refer to this via any of the following:
mods.mekanism.chemical_oxidizer/* Used as page default */
mods.mekanism.chemicaloxidizer
mods.mekanism.chemicalOxidizer
mods.mekanism.ChemicalOxidizer
mods.mekanism.oxidizer
mods.mekanism.OxidizerAdding Recipes
Adds recipes in the format
ingredient,output:groovymods.mekanism.chemical_oxidizer.add(IIngredient, GasStack)
Example
mods.mekanism.chemical_oxidizer.add(ore('dustGold'), gas('gold'))Recipe Builder
Just like other recipe types, the Chemical Oxidizer 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.mekanism.chemical_oxidizer.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
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullormekanism.common.recipe.machines.OxidationRecipe).groovyregister()
Example
mods.mekanism.chemical_oxidizer.recipeBuilder()
.input(ore('dustGold'))
.gasOutput(gas('gold'))
.register()Removing Recipes
Removes all recipes that match the given input:
groovymods.mekanism.chemical_oxidizer.removeByInput(IIngredient)Removes all registered recipes:
groovymods.mekanism.chemical_oxidizer.removeAll()
Example
mods.mekanism.chemical_oxidizer.removeByInput(ore('dustSulfur'))
mods.mekanism.chemical_oxidizer.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.chemical_oxidizer.streamRecipes()
