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:
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:
groovymods.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.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
Lens
. Sets the type of Lens used for the recipe. Requires not null. (DefaultActuallyAdditionsAPI.lensDefaultConversion
).groovytype(Lens)
int
. Sets the amount of power consumed by the recipe. Requires greater than 0. (Default1
).groovyenergy(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. (returnsnull
orde.ellpeck.actuallyadditions.api.recipe.LensConversionRecipe
).groovyregister()
Example
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:
groovymods.actuallyadditions.atomic_reconstructor.remove(LensConversionRecipe)
Removes all recipes that match the given ore:
groovymods.actuallyadditions.atomic_reconstructor.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.actuallyadditions.atomic_reconstructor.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.actuallyadditions.atomic_reconstructor.removeAll()
Example
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:
groovymods.actuallyadditions.atomic_reconstructor.streamRecipes()