Skip to content

Alloy Kiln (Immersive Engineering)

Description

Converts two input itemstacks into an output itemstack, consuming fuel (based on burn time).

Identifier

The identifier mods.immersiveengineering.alloy_kiln will be used as the default on this page.

All Identifiers

Any of these can be used to refer to this compat:

groovy
mods.ie.alloykiln
mods.ie.alloyKiln
mods.ie.AlloyKiln
mods.ie.alloy_kiln
mods.immersiveengineering.alloykiln
mods.immersiveengineering.alloyKiln
mods.immersiveengineering.AlloyKiln
mods.immersiveengineering.alloy_kiln/* Used as page default */

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.immersiveengineering.alloy_kiln.add(AlloyRecipe)
  • Adds recipes in the format output, input0, input1, time:

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

Recipe Builder

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

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

Recipe Builder
  • Create the Recipe Builder.

    groovy
    mods.immersiveengineering.alloy_kiln.recipeBuilder()

  • IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 2.

    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>)
  • 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.AlloyRecipe).

    groovy
    register()

Example
groovy
mods.immersiveengineering.alloy_kiln.recipeBuilder()
    .input(item('minecraft:diamond'), ore('ingotGold'))
    .output(item('minecraft:clay'))
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

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

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

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

    groovy
    mods.immersiveengineering.alloy_kiln.removeAll()
Example
groovy
mods.immersiveengineering.alloy_kiln.removeByInput(item('minecraft:gold_ingot'), item('immersiveengineering:metal:3'))
mods.immersiveengineering.alloy_kiln.removeByOutput(item('immersiveengineering:metal:6'))
mods.immersiveengineering.alloy_kiln.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.alloy_kiln.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.