Chemical Combiner (Alchemistry)
Description
Converts up to 9 input itemstacks into an output itemstack.
Identifier
Refer to this via any of the following:
mods.alchemistry.combiner/* Used as page default */
mods.alchemistry.Combiner
mods.alchemistry.chemical_combiner
mods.alchemistry.chemicalcombiner
mods.alchemistry.chemicalCombiner
mods.alchemistry.ChemicalCombiner
Adding Recipes
Add the given recipe to the recipe list:
groovymods.alchemistry.combiner.add(CombinerRecipe)
Recipe Builder
Just like other recipe types, the Chemical Combiner also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.alchemistry.combiner.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 9.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>)
String
. Sets the required gamestage to add the recipe.groovygamestage(String)
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
oral132.alchemistry.recipes.CombinerRecipe
).groovyregister()
Example
mods.alchemistry.combiner.recipeBuilder()
.input(item('minecraft:gold_ingot') * 2, item('minecraft:gold_ingot') * 2, item('minecraft:gold_ingot') * 2, item('minecraft:gold_ingot') * 2, item('minecraft:gold_ingot') * 2, item('minecraft:gold_ingot') * 2, item('minecraft:gold_ingot') * 2, item('minecraft:gold_ingot') * 2, item('minecraft:gold_ingot') * 2)
.output(item('minecraft:gold_block') * 2)
.register()
mods.alchemistry.combiner.recipeBuilder()
.input(ItemStack.EMPTY, ItemStack.EMPTY, item('minecraft:clay'))
.output(item('minecraft:gold_ingot'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.alchemistry.combiner.remove(CombinerRecipe)
Removes all recipes that match the given input:
groovymods.alchemistry.combiner.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.alchemistry.combiner.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.alchemistry.combiner.removeAll()
Example
mods.alchemistry.combiner.removeByInput(element('carbon'))
mods.alchemistry.combiner.removeByOutput(item('minecraft:glowstone'))
mods.alchemistry.combiner.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.alchemistry.combiner.streamRecipes()