Atomizer (Alchemistry)
Description
Converts a non-element into its component elements.
Identifier
Refer to this via any of the following:
mods.alchemistry.atomizer/* Used as page default */
mods.alchemistry.AtomizerAdding Recipes
Add the given recipe to the recipe list:
groovymods.alchemistry.atomizer.add(AtomizerRecipe)Adds recipes in the format
input,output:groovymods.alchemistry.atomizer.add(FluidStack, ItemStack)
Recipe Builder
Just like other recipe types, the Atomizer 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.alchemistry.atomizer.recipeBuilder()
FluidStackList. Sets the fluid inputs of the recipe. Requires exactly 1.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)ItemStackList. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)boolean. Sets if the recipe will also create a Liquifier recipe to invert the process. (Defaultfalse).groovyreversible() reversible(boolean)
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. (returnsnulloral132.alchemistry.recipes.AtomizerRecipe).groovyregister()
Example
mods.alchemistry.atomizer.recipeBuilder()
.fluidInput(fluid('water') * 125)
.output(item('minecraft:clay'))
.register()
mods.alchemistry.atomizer.recipeBuilder()
.fluidInput(fluid('lava') * 500)
.output(item('minecraft:gold_ingot'))
.reversible()
.register()Removing Recipes
Removes the given recipe from the recipe list:
groovymods.alchemistry.atomizer.remove(AtomizerRecipe)Removes all recipes that match the given input:
groovymods.alchemistry.atomizer.removeByInput(FluidStack)Removes all recipes that match the given output:
groovymods.alchemistry.atomizer.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.alchemistry.atomizer.removeAll()
Example
mods.alchemistry.atomizer.removeByInput(fluid('water'))
mods.alchemistry.atomizer.removeByOutput(item('alchemistry:compound:7'))
mods.alchemistry.atomizer.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.atomizer.streamRecipes()
