Skip to content

Atomic Reconstructor (Actually Additions)

Description

The Atomic Reconstructor is a block which uses energy to convert a block or item in front of it into other items.

Identifier

Refer to this via any of the following:

groovy
mods.aa.atomic_reconstructor
mods.aa.atomicreconstructor
mods.aa.atomicReconstructor
mods.aa.AtomicReconstructor
mods.actuallyadditions.atomic_reconstructor/* Used as page default */
mods.actuallyadditions.atomicreconstructor
mods.actuallyadditions.atomicReconstructor
mods.actuallyadditions.AtomicReconstructor

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.actuallyadditions.atomic_reconstructor.add(LensConversionRecipe)

Recipe Builder

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

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

mods.actuallyadditions.atomic_reconstructor.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>)
  • Lens. Sets the type of Lens used for the recipe. Requires not null. (Default ActuallyAdditionsAPI.lensDefaultConversion).

    groovy
    type(Lens)
  • int. Sets the amount of power consumed by the recipe. Requires greater than 0. (Default 1).

    groovy
    energy(int)
    energyUse(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 de.ellpeck.actuallyadditions.api.recipe.LensConversionRecipe).

    groovy
    register()
Example
groovy
mods.actuallyadditions.atomic_reconstructor.recipeBuilder()
    .input(item('minecraft:clay'))
    .output(item('minecraft:diamond'))
    .energyUse(1000)
    .register()

mods.actuallyadditions.atomic_reconstructor.recipeBuilder()
    .input(item('minecraft:clay'))
    .output(item('minecraft:diamond'))
    .energy(1000)
    .register()

mods.actuallyadditions.atomic_reconstructor.recipeBuilder()
    .input(item('minecraft:gold_ingot'))
    .output(item('minecraft:clay') * 2)
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.actuallyadditions.atomic_reconstructor.remove(LensConversionRecipe)
  • Removes all recipes that match the given ore:

    groovy
    mods.actuallyadditions.atomic_reconstructor.removeByInput(IIngredient)
  • Removes all recipes that match the given output:

    groovy
    mods.actuallyadditions.atomic_reconstructor.removeByOutput(ItemStack)
  • Removes all registered recipes:

    groovy
    mods.actuallyadditions.atomic_reconstructor.removeAll()
Example
groovy
mods.actuallyadditions.atomic_reconstructor.removeByInput(item('minecraft:diamond'))
mods.actuallyadditions.atomic_reconstructor.removeByOutput(item('actuallyadditions:block_crystal'))
mods.actuallyadditions.atomic_reconstructor.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.actuallyadditions.atomic_reconstructor.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.