Pressurized Reaction Chamber (Mekanism)
Description
Converts an input fluidstack, gasstack, and optional itemstack into an output gasstack and optional itemstack.
Identifier
Refer to this via any of the following:
mods.mekanism.pressurized_reaction_chamber/* Used as page default */
mods.mekanism.pressurizedreactionchamber
mods.mekanism.pressurizedReactionChamber
mods.mekanism.PressurizedReactionChamber
mods.mekanism.PRC
mods.mekanism.prc
Adding Recipes
Adds recipes in the format
inputSolid
,inputFluid
,inputGas
,outputSolid
,outputGas
,energy
,duration
:groovymods.mekanism.pressurized_reaction_chamber.add(IIngredient, FluidStack, GasStack, ItemStack, GasStack, double, int)
Recipe Builder
Just like other recipe types, the Pressurized Reaction Chamber also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.mekanism.pressurized_reaction_chamber.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
FluidStackList
. Sets the fluid inputs of the recipe. Requires exactly 1.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
GasStackList
. Sets the gas inputs of the recipe. Requires exactly 1.groovygasInput(GasStack) gasInput(GasStack...) gasInput(Collection<GasStack>)
ItemStackList
. Sets the item outputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
GasStackList
. Sets the gas outputs of the recipe. Requires exactly 1.groovygasOutput(GasStack) gasOutput(GasStack...) gasOutput(Collection<GasStack>)
double
. Sets the energy cost of the recipe. Requires greater than 0. (Default0.0d
).groovyenergy(double)
int
. Sets the time in ticks for the recipe to process. Requires greater than 0. (Default0
).groovyduration(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
ormekanism.common.recipe.machines.PressurizedRecipe
).groovyregister()
Example
mods.mekanism.pressurized_reaction_chamber.recipeBuilder()
.fluidInput(fluid('water'))
.gasInput(gas('water'))
.input(item('minecraft:clay_ball'))
.gasOutput(gas('ethene'))
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.mekanism.pressurized_reaction_chamber.removeByInput(IIngredient, FluidStack, GasStack)
Removes all registered recipes:
groovymods.mekanism.pressurized_reaction_chamber.removeAll()
Example
mods.mekanism.pressurized_reaction_chamber.removeByInput(ore('logWood'), fluid('water'), gas('oxygen'))
mods.mekanism.pressurized_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.mekanism.pressurized_reaction_chamber.streamRecipes()