Skip to content

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:

groovy
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:

    groovy
    mods.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.

    groovy
    input(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.

    groovy
    output(ItemStack)
    output(ItemStack...)
    output(Collection<ItemStack>)
  • FluidStackList. Sets the fluid outputs of the recipe. Requires exactly 1.

    groovy
    fluidOutput(FluidStack)
    fluidOutput(FluidStack...)
    fluidOutput(Collection<FluidStack>)
  • int. Sets the amount of power consumed to complete the recipe. (Default 0).

    groovy
    energy(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. (returns null or blusunrize.immersiveengineering.api.crafting.FermenterRecipe).

    groovy
    register()
Example
groovy
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:

    groovy
    mods.immersiveengineering.fermenter.removeByInput(ItemStack)
  • Removes all recipes that match the given output:

    groovy
    mods.immersiveengineering.fermenter.removeByOutput(FluidStack)
  • Removes all registered recipes:

    groovy
    mods.immersiveengineering.fermenter.removeAll()
Example
groovy
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:

    groovy
    mods.immersiveengineering.fermenter.streamRecipes()

贡献者

© 2024 CleanroomMC. All Rights Reserved.