Evaporator (Alchemistry)
Description
Converts an input fluidstack into an output fluidstack, taking a set amount of time.
Identifier
Refer to this via any of the following:
mods.alchemistry.evaporator/* Used as page default */
mods.alchemistry.Evaporator
Adding Recipes
Add the given recipe to the recipe list:
groovymods.alchemistry.evaporator.add(EvaporatorRecipe)
Adds recipes in the format
input
,output
:groovymods.alchemistry.evaporator.add(FluidStack, ItemStack)
Recipe Builder
Just like other recipe types, the Evaporator also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.alchemistry.evaporator.recipeBuilder()
FluidStackList
. Sets the fluid inputs of the recipe. Requires exactly 1.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
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
oral132.alchemistry.recipes.EvaporatorRecipe
).groovyregister()
Example
mods.alchemistry.evaporator.recipeBuilder()
.fluidInput(fluid('lava') * 100)
.output(item('minecraft:redstone') * 8)
.register()
mods.alchemistry.evaporator.recipeBuilder()
.fluidInput(fluid('water') * 10)
.output(item('minecraft:clay'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.alchemistry.evaporator.remove(EvaporatorRecipe)
Removes all recipes that match the given input:
groovymods.alchemistry.evaporator.removeByInput(FluidStack)
Removes all recipes that match the given output:
groovymods.alchemistry.evaporator.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.alchemistry.evaporator.removeAll()
Example
mods.alchemistry.evaporator.removeByInput(fluid('lava'))
mods.alchemistry.evaporator.removeByOutput(item('alchemistry:mineral_salt'))
mods.alchemistry.evaporator.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.alchemistry.evaporator.streamRecipes()