Crystal Energization (LazyAE2)
Description
Converts 1 input itemstack into an output itemstack, consuming a set amount of energy.
Identifier
Refer to this via any of the following:
mods.threng.energizer/* Used as page default */
mods.threng.Energizer
mods.lazyae2.energizer
mods.lazyae2.Energizer
Adding Recipes
Add the given recipe to the recipe list:
groovymods.threng.energizer.add(EnergizeRecipe)
Recipe Builder
Just like other recipe types, the Crystal Energization also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.threng.energizer.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>)
int
. Sets the amount of energy consumed by the recipe. Requires greater than 0. (Default0
).groovyenergy(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
orio.github.phantamanta44.threng.recipe.EnergizeRecipe
).groovyregister()
Example
mods.threng.energizer.recipeBuilder()
.input(ore('blockGlass'))
.energy(50)
.output(item('minecraft:diamond'))
.register()
mods.threng.energizer.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.energy(10000)
.output(item('minecraft:diamond'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.threng.energizer.remove(EnergizeRecipe)
Removes all recipes that match the given input:
groovymods.threng.energizer.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.threng.energizer.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.threng.energizer.removeAll()
Example
mods.threng.energizer.removeByInput(item('appliedenergistics2:material'))
mods.threng.energizer.removeByOutput(item('appliedenergistics2:material:1'))
mods.threng.energizer.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.threng.energizer.streamRecipes()