Empowerer (Actually Additions)
Description
Turns 5 input items into an output item at the cost of power and time. Has a configurable color.
Identifier
Refer to this via any of the following:
mods.aa.empowerer
mods.aa.Empowerer
mods.actuallyadditions.empowerer/* Used as page default */
mods.actuallyadditions.Empowerer
Adding Recipes
Add the given recipe to the recipe list:
groovymods.actuallyadditions.empowerer.add(EmpowererRecipe)
Recipe Builder
Just like other recipe types, the Empowerer also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.actuallyadditions.empowerer.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 4 and less than or equal to 5.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>)
float
. Sets the red color. Requires greater than or equal to 0 and less than or equal to 1. (Default0.0f
).groovyred(float) color(int) color(float...) particleColor(int) particleColor(float...)
float
. Sets the blue color. Requires greater than or equal to 0 and less than or equal to 1. (Default0.0f
).groovyblue(float) color(int) color(float...) particleColor(int) particleColor(float...)
int
. Sets the amount of time the recipe takes to complete. Requires greater than 0. (Default0
).groovytime(int)
float
. Sets the green color. Requires greater than or equal to 0 and less than or equal to 1. (Default0.0f
).groovygreen(float) color(int) color(float...) particleColor(int) particleColor(float...)
IIngredient
. Sets the center IIngredient if the input only has 4 entries.groovymainInput(IIngredient)
int
. Sets the amount of energy each stand must consume to process the recipe. Requires greater than or equal to 0. (Default0
).groovyenergy(int) energyPerStand(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.EmpowererRecipe
).groovyregister()
Example
mods.actuallyadditions.empowerer.recipeBuilder()
.mainInput(item('minecraft:clay'))
.input(item('minecraft:clay'),item('minecraft:clay'),item('minecraft:clay'),item('minecraft:clay'))
.output(item('minecraft:diamond'))
.time(50)
.energy(1000)
.red(0.5)
.green(0.3)
.blue(0.2)
.register()
mods.actuallyadditions.empowerer.recipeBuilder()
.mainInput(item('minecraft:clay'))
.input(item('minecraft:diamond'),item('minecraft:clay'),item('minecraft:clay'),item('minecraft:clay'))
.output(item('minecraft:diamond') * 2)
.time(50)
.color(0.5, 0.3, 0.2)
.register()
mods.actuallyadditions.empowerer.recipeBuilder()
.mainInput(item('minecraft:diamond'))
.input(item('minecraft:diamond'),item('minecraft:gold_ingot'),item('minecraft:diamond'),item('minecraft:gold_ingot'))
.output(item('minecraft:dirt') * 8)
.time(50)
.particleColor(0x00FF88)
.register()
mods.actuallyadditions.empowerer.recipeBuilder()
.input(item('minecraft:gold_ingot'),item('minecraft:clay'),item('minecraft:clay'),item('minecraft:clay'),item('minecraft:clay'))
.output(item('minecraft:diamond'))
.time(50)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.actuallyadditions.empowerer.remove(EmpowererRecipe)
Removes all recipes that match the given input:
groovymods.actuallyadditions.empowerer.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.actuallyadditions.empowerer.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.actuallyadditions.empowerer.removeAll()
Example
mods.actuallyadditions.empowerer.removeByInput(item('actuallyadditions:item_crystal'))
mods.actuallyadditions.empowerer.removeByOutput(item('actuallyadditions:item_misc:24'))
mods.actuallyadditions.empowerer.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.empowerer.streamRecipes()