Skip to content

Compression Dynamo (Thermal Expansion)

Description

Converts an input fluidstack into power, taking time based on the power.

Identifier

Refer to this via any of the following:

groovy
mods.thermal.compression
mods.thermal.Compression
mods.thermalexpansion.compression/* Used as page default */
mods.thermalexpansion.Compression

Adding Recipes

  • Adds recipes in the format fluidStack, energy:

    groovy
    mods.thermalexpansion.compression.add(FluidStack, int)
Example
groovy
mods.thermalexpansion.compression.add(fluid('steam'), 100)

Removing Recipes

  • Removes all recipes with given FluidStack:

    groovy
    mods.thermalexpansion.compression.removeByInput(FluidStack)
  • Removes all recipes with given FluidStack:

    groovy
    mods.thermalexpansion.compression.removeByInput(String)
  • Removes all registered recipes:

    groovy
    mods.thermalexpansion.compression.removeAll()
Example
groovy
mods.thermalexpansion.compression.removeByInput(fluid('seed_oil'))
mods.thermalexpansion.compression.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.thermalexpansion.compression.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.