High-Pressure Steam Turbine (Immersive Technology)
Description
Converts an input fluidstack into an output fluidstack after a given amount of time in a multiblock structure, producing power for an adjacent Alternator multiblock.
Identifier
Refer to this via any of the following:
mods.immersivetech.high_pressure_steam_turbine/* Used as page default */
mods.immersivetech.highpressuresteamturbine
mods.immersivetech.highPressureSteamTurbine
mods.immersivetech.HighPressureSteamTurbine
Adding Recipes
Add the given recipe to the recipe list:
groovymods.immersivetech.high_pressure_steam_turbine.add(HighPressureSteamTurbineRecipe)
Recipe Builder
Just like other recipe types, the High-Pressure Steam Turbine also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.immersivetech.high_pressure_steam_turbine.recipeBuilder()
FluidStackList
. Sets the fluid inputs of the recipe. Requires exactly 1.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
FluidStackList
. Sets the fluid outputs of the recipe. Requires exactly 1.groovyfluidOutput(FluidStack) fluidOutput(FluidStack...) fluidOutput(Collection<FluidStack>)
int
. Sets the time in ticks the recipe takes to process. Requires greater than or equal to 0. (Default0
).groovytime(int)
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. (returnsnull
ormctmods.immersivetechnology.api.crafting.HighPressureSteamTurbineRecipe
).groovyregister()
Example
mods.immersivetech.high_pressure_steam_turbine.recipeBuilder()
.fluidInput(fluid('lava') * 100)
.fluidOutput(fluid('hot_spring_water') * 500)
.time(100)
.register()
mods.immersivetech.high_pressure_steam_turbine.recipeBuilder()
.fluidInput(fluid('water') * 50)
.fluidOutput(fluid('lava') * 50)
.time(50)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.immersivetech.high_pressure_steam_turbine.remove(HighPressureSteamTurbineRecipe)
Removes all recipes that match the given input:
groovymods.immersivetech.high_pressure_steam_turbine.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.immersivetech.high_pressure_steam_turbine.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.immersivetech.high_pressure_steam_turbine.removeAll()
Example
mods.immersivetech.high_pressure_steam_turbine.removeByInput(fluid('highpressuresteam'))
mods.immersivetech.high_pressure_steam_turbine.removeByOutput(fluid('steam'))
mods.immersivetech.high_pressure_steam_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:
groovymods.immersivetech.high_pressure_steam_turbine.streamRecipes()