Skip to content

Refinery (Immersive Engineering)

Description

Converts 2 input fluidstacks into an output fluidstack, consuming power.

Identifier

Refer to this via any of the following:

groovy
mods.ie.refinery
mods.ie.Refinery
mods.immersiveengineering.refinery/* Used as page default */
mods.immersiveengineering.Refinery

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.immersiveengineering.refinery.add(RefineryRecipe)
  • Adds recipes in the format output, input0, input1, energy:

    groovy
    mods.immersiveengineering.refinery.add(FluidStack, FluidStack, FluidStack, int)

Recipe Builder

Just like other recipe types, the Refinery also uses a recipe builder.

Don't know what a builder is? Check the builder info page out.

mods.immersiveengineering.refinery.recipeBuilder()
  • FluidStackList. Sets the fluid inputs of the recipe. Requires exactly 2.

    groovy
    fluidInput(FluidStack)
    fluidInput(FluidStack...)
    fluidInput(Collection<FluidStack>)
  • 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.RefineryRecipe).

    groovy
    register()
Example
groovy
mods.immersiveengineering.refinery.recipeBuilder()
    .fluidInput(fluid('water'), fluid('water'))
    .fluidOutput(fluid('lava'))
    .energy(100)
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.immersiveengineering.refinery.remove(RefineryRecipe)
  • Removes all recipes that match the given input:

    groovy
    mods.immersiveengineering.refinery.removeByInput(FluidStack, FluidStack)
  • Removes all recipes that match the given output:

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

    groovy
    mods.immersiveengineering.refinery.removeAll()
Example
groovy
mods.immersiveengineering.refinery.removeByInput(fluid('plantoil'), fluid('ethanol'))
mods.immersiveengineering.refinery.removeByOutput(fluid('biodiesel'))
mods.immersiveengineering.refinery.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.refinery.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.