Glacial Precipitator (Thermal Expansion)
Description
Converts an amount of water into a specific output itemstack, costing power and taking time based on the power cost.
Identifier
Refer to this via any of the following:
mods.thermal.precipitator
mods.thermal.Precipitator
mods.thermalexpansion.precipitator/* Used as page default */
mods.thermalexpansion.Precipitator
Adding Recipes
Adds recipes in the format
energy
,output
,water
:groovymods.thermalexpansion.precipitator.add(int, ItemStack, int)
Example
mods.thermalexpansion.precipitator.add(1000, item('minecraft:obsidian'), 100)
Recipe Builder
Just like other recipe types, the Glacial Precipitator also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.thermalexpansion.precipitator.recipeBuilder()
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Sets the amount of water consumed by the recipe. Requires greater than or equal to 0. (Default0
).groovywater(int)
int
. Sets the energy cost of the recipe. Requires greater than 0. (DefaultPrecipitatorManager.DEFAULT_ENERGY
).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
orcofh.thermalexpansion.util.managers.machine.PrecipitatorManager$PrecipitatorRecipe
).groovyregister()
Example
mods.thermalexpansion.precipitator.recipeBuilder()
.output(item('minecraft:clay'))
.register()
mods.thermalexpansion.precipitator.recipeBuilder()
.water(100)
.output(item('minecraft:clay'))
.energy(1000)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.thermalexpansion.precipitator.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.thermalexpansion.precipitator.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.thermalexpansion.precipitator.removeAll()
Example
mods.thermalexpansion.precipitator.removeByInput(fluid('water'))
mods.thermalexpansion.precipitator.removeByOutput(item('minecraft:snowball'))
mods.thermalexpansion.precipitator.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.thermalexpansion.precipitator.streamRecipes()