Fermenter (Immersive Engineering)
Description
Converts an input itemstack into an output fluidstack with an optional output itemstack, consuming power.
Identifier
Refer to this via any of the following:
mods.ie.fermenter
mods.ie.Fermenter
mods.immersiveengineering.fermenter/* Used as page default */
mods.immersiveengineering.Fermenter
Adding Recipes
Adds recipes in the format
fluidOutput
,itemOutput
,input
,energy
:groovymods.immersiveengineering.fermenter.add(FluidStack, ItemStack, IIngredient, int)
Recipe Builder
Just like other recipe types, the Fermenter also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.immersiveengineering.fermenter.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
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>)
FluidStackList
. Sets the fluid outputs of the recipe. Requires exactly 1.groovyfluidOutput(FluidStack) fluidOutput(FluidStack...) fluidOutput(Collection<FluidStack>)
int
. Sets the amount of power consumed to complete the recipe. (Default0
).groovyenergy(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
orblusunrize.immersiveengineering.api.crafting.FermenterRecipe
).groovyregister()
Example
mods.immersiveengineering.fermenter.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:clay'))
.fluidOutput(fluid('water'))
.energy(100)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.immersiveengineering.fermenter.removeByInput(ItemStack)
Removes all recipes that match the given output:
groovymods.immersiveengineering.fermenter.removeByOutput(FluidStack)
Removes all registered recipes:
groovymods.immersiveengineering.fermenter.removeAll()
Example
mods.immersiveengineering.fermenter.removeByInput(item('minecraft:reeds'))
mods.immersiveengineering.fermenter.removeByOutput(fluid('ethanol'))
mods.immersiveengineering.fermenter.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.immersiveengineering.fermenter.streamRecipes()