Reactant Dynamo (Thermal Expansion)
Description
Converts an input itemstack and input fluidstack into power, taking time based on the power.
Identifier
The identifier mods.thermalexpansion.reactant will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
mods.thermal.reactant
mods.thermal.Reactant
mods.thermalexpansion.reactant/* Used as page default */
mods.thermalexpansion.ReactantAdding Recipes
Adds recipes in the format
ingredient,fluidStack,energy:groovymods.thermalexpansion.reactant.add(IIngredient, FluidStack, int)Adds a fluid to the Element Catalyzer Fluid list, enabling its use with the Elemental Catalyzer augment installed:
groovymods.thermalexpansion.reactant.addElementalFluid(String)Adds a fluid to the Element Catalyzer Fluid list, enabling its use with the Elemental Catalyzer augment installed:
groovymods.thermalexpansion.reactant.addElementalFluid(FluidStack)Adds an itemstack to the Element Catalyzer Fluid list, enabling its use with the Elemental Catalyzer augment installed:
groovymods.thermalexpansion.reactant.addElementalReactant(ItemStack)
Example
mods.thermalexpansion.reactant.add(item('minecraft:clay'), fluid('steam'), 100)
mods.thermalexpansion.reactant.addElementalFluid(fluid('glowstone'))
mods.thermalexpansion.reactant.addElementalReactant(item('minecraft:gunpowder'))
mods.thermalexpansion.reactant.addElementalReactant(item('minecraft:clay'))Recipe Builder
Just like other recipe types, the Reactant Dynamo also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.thermalexpansion.reactant.recipeBuilder()
IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 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>)int. Sets the amount of energy produced by the recipe. Requires greater than 0. (DefaultReactantManager.DEFAULT_ENERGY).groovyenergy(int)
First validates the builder, returning
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullorcofh.thermalexpansion.util.managers.dynamo.ReactantManager$Reaction).groovyregister()
Example
mods.thermalexpansion.reactant.recipeBuilder()
.input(item('minecraft:diamond'))
.fluidInput(fluid('steam'))
.register()
mods.thermalexpansion.reactant.recipeBuilder()
.input(item('minecraft:clay'))
.fluidInput(fluid('glowstone'))
.energy(100)
.register()Removing Recipes
Removes all recipes with given IIngredient or fluid name:
groovymods.thermalexpansion.reactant.removeByInput(IIngredient)Removes a fluid from the Element Catalyzer Fluid list, disabling its use with the Elemental Catalyzer augment installed:
groovymods.thermalexpansion.reactant.removeElementalFluid(String)Removes a fluid from the Element Catalyzer Fluid list, disabling its use with the Elemental Catalyzer augment installed:
groovymods.thermalexpansion.reactant.removeElementalFluid(FluidStack)Removes an itemstack from the Element Catalyzer Fluid list, disabling its use with the Elemental Catalyzer augment installed:
groovymods.thermalexpansion.reactant.removeElementalReactant(ItemStack)Removes all registered recipes:
groovymods.thermalexpansion.reactant.removeAll()
Example
mods.thermalexpansion.reactant.removeByInput(item('minecraft:blaze_powder'))
mods.thermalexpansion.reactant.removeByInput(fluid('redstone'))
mods.thermalexpansion.reactant.removeElementalFluid(fluid('cryotheum'))
mods.thermalexpansion.reactant.removeElementalReactant(item('thermalfoundation:material:1024'))
mods.thermalexpansion.reactant.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.reactant.streamRecipes()
