Heat Exchanger (Immersive Technology)
Description
Converts up to two input fluidstacks into up to two output fluidstacks after a given amount of time in a multiblock structure.
Identifier
Refer to this via any of the following:
mods.immersivetech.heat_exchanger/* Used as page default */
mods.immersivetech.heatexchanger
mods.immersivetech.heatExchanger
mods.immersivetech.HeatExchanger
Adding Recipes
Add the given recipe to the recipe list:
groovymods.immersivetech.heat_exchanger.add(HeatExchangerRecipe)
Recipe Builder
Just like other recipe types, the Heat Exchanger also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.immersivetech.heat_exchanger.recipeBuilder()
FluidStackList
. Sets the fluid inputs of the recipe. Requires exactly 2.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
FluidStackList
. Sets the fluid outputs of the recipe. Requires greater than or equal to 1 and less than or equal to 2.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)
int
. Sets the energy used in total IF consumed by the recipe. Requires greater than or equal to 0. (Default0
).groovyenergy(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.HeatExchangerRecipe
).groovyregister()
Example
mods.immersivetech.heat_exchanger.recipeBuilder()
.fluidInput(fluid('lava') * 100, fluid('lava') * 50)
.fluidOutput(fluid('hot_spring_water') * 500)
.time(100)
.register()
mods.immersivetech.heat_exchanger.recipeBuilder()
.fluidInput(fluid('water') * 50, fluid('hot_spring_water') * 50)
.fluidOutput(fluid('lava') * 50, fluid('water') * 10)
.time(50)
.energy(5000)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.immersivetech.heat_exchanger.remove(HeatExchangerRecipe)
Removes all recipes that match the given input:
groovymods.immersivetech.heat_exchanger.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.immersivetech.heat_exchanger.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.immersivetech.heat_exchanger.removeAll()
Example
mods.immersivetech.heat_exchanger.removeByInput(fluid('fluegas'))
mods.immersivetech.heat_exchanger.removeByOutput(fluid('hot_spring_water'))
mods.immersivetech.heat_exchanger.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.heat_exchanger.streamRecipes()