Skip to content

Fluid Dictionary Converter (Industrial Foregoing)

Description

Converts one fluid into another fluid at a given ratio.

Identifier

Refer to this via any of the following:

groovy
mods.industrialforegoing.fluid_dictionary/* Used as page default */
mods.industrialforegoing.fluiddictionary
mods.industrialforegoing.fluidDictionary
mods.industrialforegoing.FluidDictionary

Adding Recipes

  • Adds a Fluid Dictionary Converter recipe in the format input, output:

    groovy
    mods.industrialforegoing.fluid_dictionary.add(FluidStack, FluidStack)
  • Adds a Fluid Dictionary Converter recipe in the format input, output, ratio:

    groovy
    mods.industrialforegoing.fluid_dictionary.add(FluidStack, FluidStack, double)
  • Adds a Fluid Dictionary Converter recipe in the format input, output, ratio:

    groovy
    mods.industrialforegoing.fluid_dictionary.add(String, String, double)
Example
groovy
mods.industrialforegoing.fluid_dictionary.add(fluid('biofuel'), fluid('latex'),)
mods.industrialforegoing.fluid_dictionary.add(fluid('latex'), fluid('biofuel'),)
mods.industrialforegoing.fluid_dictionary.add(fluid('essence'), fluid('latex'), 2)
mods.industrialforegoing.fluid_dictionary.add(fluid('latex'), fluid('essence'), 0.5)

Removing Recipes

  • Removes all recipes that match the given input:

    groovy
    mods.industrialforegoing.fluid_dictionary.removeByInput(FluidStack)
  • Removes all recipes that match the given input:

    groovy
    mods.industrialforegoing.fluid_dictionary.removeByInput(String)
  • Removes all recipes that match the given output:

    groovy
    mods.industrialforegoing.fluid_dictionary.removeByOutput(FluidStack)
  • Removes all recipes that match the given output:

    groovy
    mods.industrialforegoing.fluid_dictionary.removeByOutput(String)
  • Removes all registered recipes:

    groovy
    mods.industrialforegoing.fluid_dictionary.removeAll()
Example
groovy
mods.industrialforegoing.fluid_dictionary.removeByInput(fluid('essence'))
mods.industrialforegoing.fluid_dictionary.removeByOutput(fluid(essence'))
mods.industrialforegoing.fluid_dictionary.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.industrialforegoing.fluid_dictionary.streamRecipes()

© 2024 CleanroomMC. All Rights Reserved.