Reaction Chamber (Embers)
Description
Converts an input fluidstack into an output fluidstack in a Reaction Chamber.
Identifier
Refer to this via any of the following:
mods.embers.reaction_chamber/* Used as page default */
mods.embers.reactionchamber
mods.embers.reactionChamber
mods.embers.ReactionChamber
Adding Recipes
Recipe Builder
Just like other recipe types, the Reaction Chamber also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.embers.reaction_chamber.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>)
float
. Sets the red value of the color. Requires greater than or equal to 0 and less than or equal to 1. (Default0.0f
).groovyred(float) color(int) color(float...) particleColor(int) particleColor(float...)
float
. Sets the blue value of the color. Requires greater than or equal to 0 and less than or equal to 1. (Default0.0f
).groovyblue(float) color(int) color(float...) particleColor(int) particleColor(float...)
float
. Sets the green value of the color. Requires greater than or equal to 0 and less than or equal to 1. (Default0.0f
).groovygreen(float) color(int) color(float...) particleColor(int) particleColor(float...)
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.FluidReactionRecipe
).groovyregister()
Example
mods.embers.reaction_chamber.recipeBuilder()
.fluidInput(fluid('lava') * 10)
.fluidOutput(fluid('steam') * 50)
.register()
Removing Recipes
Removes all recipes that match the given output:
groovymods.embers.reaction_chamber.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.embers.reaction_chamber.removeAll()
Example
mods.embers.reaction_chamber.removeByOutput(fluid('steam'))
mods.embers.reaction_chamber.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.reaction_chamber.streamRecipes()