Skip to content

Blast Furnace (Immersive Engineering)

Description

Converts an input itemstack into an output itemstack and an optional 'slag' itemstack, taking time and consuming fuel (based on Blast Furnace Fuels).

Identifier

Refer to this via any of the following:

groovy
mods.ie.blast_furnace
mods.ie.blastfurnace
mods.ie.blastFurnace
mods.ie.BlastFurnace
mods.immersiveengineering.blast_furnace/* Used as page default */
mods.immersiveengineering.blastfurnace
mods.immersiveengineering.blastFurnace
mods.immersiveengineering.BlastFurnace

Adding Recipes

  • Adds recipes in the format output, input, time, slag:

    groovy
    mods.immersiveengineering.blast_furnace.add(ItemStack, IIngredient, int, ItemStack)

Recipe Builder

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

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

mods.immersiveengineering.blast_furnace.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 exactly 1.

    groovy
    output(ItemStack)
    output(ItemStack...)
    output(Collection<ItemStack>)
  • ItemStack. Sets the item output as slag.

    groovy
    slag(ItemStack)
  • int. Sets the time in ticks the recipe takes to process. Requires greater than or equal to 0. (Default 0).

    groovy
    time(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.BlastFurnaceRecipe).

    groovy
    register()
Example
groovy
mods.immersiveengineering.blast_furnace.recipeBuilder()
    .input(item('minecraft:diamond'))
    .output(item('minecraft:clay'))
    .time(100)
    .slag(item('minecraft:gold_nugget'))
    .register()

Removing Recipes

  • Removes all recipes that match the given input:

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

    groovy
    mods.immersiveengineering.blast_furnace.removeByOutput(ItemStack)
  • Removes all registered recipes:

    groovy
    mods.immersiveengineering.blast_furnace.removeAll()
Example
groovy
mods.immersiveengineering.blast_furnace.removeByInput(item('minecraft:iron_block'))
mods.immersiveengineering.blast_furnace.removeByOutput(item('immersiveengineering:metal:8'))
mods.immersiveengineering.blast_furnace.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.blast_furnace.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.