Fluix Aggregation (LazyAE2)
Description
Converts up to 3 input itemstacks into an output itemstack.
Identifier
Refer to this via any of the following:
mods.threng.aggregator/* Used as page default */
mods.threng.Aggregator
mods.lazyae2.aggregator
mods.lazyae2.AggregatorAdding Recipes
Add the given recipe to the recipe list:
groovymods.threng.aggregator.add(AggRecipe)
Recipe Builder
Just like other recipe types, the Fluix Aggregation also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.threng.aggregator.recipeBuilder()
IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 3.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>)
First validates the builder, returning
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullorio.github.phantamanta44.threng.recipe.AggRecipe).groovyregister()
Example
mods.threng.aggregator.recipeBuilder()
.input(ore('blockGlass'), item('minecraft:diamond'))
.output(item('minecraft:diamond') * 4)
.register()
mods.threng.aggregator.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:diamond'))
.register()Removing Recipes
Removes the given recipe from the recipe list:
groovymods.threng.aggregator.remove(AggRecipe)Removes all recipes that match the given input:
groovymods.threng.aggregator.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.threng.aggregator.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.threng.aggregator.removeAll()
Example
mods.threng.aggregator.removeByInput(item('appliedenergistics2:material:45'))
mods.threng.aggregator.removeByOutput(item('appliedenergistics2:material:7'))
mods.threng.aggregator.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.aggregator.streamRecipes()
