Skip to content

Chemical Oxidizer (Mekanism)

Description

Converts an input itemstack into an output gasstack.

Identifier

Refer to this via any of the following:

groovy
mods.mekanism.chemical_oxidizer/* Used as page default */
mods.mekanism.chemicaloxidizer
mods.mekanism.chemicalOxidizer
mods.mekanism.ChemicalOxidizer
mods.mekanism.oxidizer
mods.mekanism.Oxidizer

Adding Recipes

  • Adds recipes in the format ingredient, output:

    groovy
    mods.mekanism.chemical_oxidizer.add(IIngredient, GasStack)
Example
groovy
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.

mods.mekanism.chemical_oxidizer.recipeBuilder()
  • IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 1.

    groovy
    input(IIngredient)
    input(IIngredient...)
    input(Collection<IIngredient>)
  • GasStackList. Sets the gas outputs of the recipe. Requires exactly 1.

    groovy
    gasOutput(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. (returns null or mekanism.common.recipe.machines.OxidationRecipe).

    groovy
    register()
Example
groovy
mods.mekanism.chemical_oxidizer.recipeBuilder()
    .input(ore('dustGold'))
    .gasOutput(gas('gold'))
    .register()

Removing Recipes

  • Removes all recipes that match the given input:

    groovy
    mods.mekanism.chemical_oxidizer.removeByInput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.mekanism.chemical_oxidizer.removeAll()
Example
groovy
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:

    groovy
    mods.mekanism.chemical_oxidizer.streamRecipes()

贡献者

页面历史

© 2024 CleanroomMC. All Rights Reserved.