Skip to content

Gas Turbine (Tech Reborn)

Description

Converts a fluidstack input into power, at a given rate per tick.

Identifier

Refer to this via any of the following:

groovy
mods.techreborn.gas_turbine/* Used as page default */
mods.techreborn.gasturbine
mods.techreborn.gasTurbine
mods.techreborn.GasTurbine

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.techreborn.gas_turbine.add(R)

Recipe Builder

Just like other recipe types, the Gas Turbine also uses a recipe builder.

Don't know what a builder is? Check the builder info page out.

mods.techreborn.gas_turbine.recipeBuilder()
  • FluidStackList. Sets the fluid inputs of the recipe. Requires exactly 1.

    groovy
    fluidInput(FluidStack)
    fluidInput(FluidStack...)
    fluidInput(Collection<FluidStack>)
  • double. Sets the total amount of energy generated from a bucket. Requires greater than 0. (Default 0.0d).

    groovy
    energy(double)
  • double. Sets the power consumed per tick. Requires greater than 0. (Default 0.0d).

    groovy
    perTick(double)
  • 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 reborncore.api.praescriptum.fuels.Fuel).

    groovy
    register()
Example
groovy
mods.techreborn.gas_turbine.recipeBuilder()
    .fluidInput(fluid('water'))
    .energy(10000)
    .perTick(500)
    .register()

mods.techreborn.gas_turbine.recipeBuilder()
    .fluidInput(fluid('lava'))
    .energy(200)
    .perTick(10)
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.techreborn.gas_turbine.remove(R)
  • Removes all recipes that match the given input:

    groovy
    mods.techreborn.gas_turbine.removeByInput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.techreborn.gas_turbine.removeAll()
Example
groovy
mods.techreborn.gas_turbine.removeByInput(fluid('fluidhydrogen'))
mods.techreborn.gas_turbine.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.techreborn.gas_turbine.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.