Mixer (Embers)
Description
Converts up to 3 input fluidstacks into an output fluidstack in a Mixer. If Mystical Mechanics is installed, the Mechanical Actuator can be used to decrease the Ember cost of a recipe.
Identifier
Refer to this via any of the following:
mods.embers.mixer/* Used as page default */
mods.embers.Mixer
Adding Recipes
Recipe Builder
Just like other recipe types, the Mixer also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.embers.mixer.recipeBuilder()
FluidStackList
. Sets the fluid inputs of the recipe. Requires greater than or equal to 2 and less than or equal to 3.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>)
double
. Sets what percentage of Ember is required when powered via the Mechanical Actuator, with 0 meaning no Ember is consumed and more than 1 meaning more Ember is consumed. Requires greater than or equal to 0. (Default0.5
).groovypowerRatio(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
orteamroots.embers.recipe.FluidMixingRecipe
).groovyregister()
Example
mods.embers.mixer.recipeBuilder()
.fluidInput(fluid('water') * 100, fluid('lava') * 100)
.fluidOutput(fluid('dawnstone') * 100)
.register()
Removing Recipes
Removes all recipes that match the given output:
groovymods.embers.mixer.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.embers.mixer.removeAll()
Example
mods.embers.mixer.removeByOutput(fluid('dawnstone'))
mods.embers.mixer.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.embers.mixer.streamRecipes()