Alchemy Condenser (Rustic)
Description
Converts some number of input itemstacks and a fluidstack into a single output stack after a time in a small multiblock structure, with a basic and advanced tier.
Identifier
Refer to this via any of the following:
mods.rustic.alchemy/* Used as page default */
mods.rustic.Alchemy
mods.rustic.condenser
mods.rustic.CondenserAdding Recipes
Add the given recipe to the recipe list:
groovymods.rustic.alchemy.add(ICondenserRecipe)
Recipe Builder
Just like other recipe types, the Alchemy Condenser 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.rustic.alchemy.recipeBuilder()
IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 2 if advanced is false and less than or equal to 3 if advanced is true.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)FluidStackList. Sets the fluid inputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1. (Defaultfluid('water') * 125).groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)ItemStackList. Sets the item outputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1.groovyeffect(PotionEffect) output(ItemStack) output(ItemStack...) output(Collection<ItemStack>)int. Sets the time in ticks the recipe will take. (Default400).groovytime(int)IIngredient. Sets the itemstack used in the bottle slot. (DefaultIIngredient.EMPTY).groovybottle(IIngredient)boolean. Sets if the recipe occurs in the normal Condenser or the Advanced Condenser. (Defaultfalse).groovyadvanced() advanced(boolean)IIngredient. Sets the additional item input modifier, used exclusively in the Advanced Condenser. (DefaultIIngredient.EMPTY).groovymodifier(IIngredient)
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. (returnsnullorrustic.common.crafting.ICondenserRecipe).groovyregister()
Example
mods.rustic.alchemy.recipeBuilder()
.input(item('minecraft:stone'), item('minecraft:gold_ingot'))
.output(item('minecraft:clay') * 4)
.time(20)
.register()
mods.rustic.alchemy.recipeBuilder()
.input(item('minecraft:stone'), item('minecraft:gold_ingot'), item('minecraft:diamond'))
.bottle(item('minecraft:torch'))
.advanced()
.effect(new PotionEffect(potion('minecraft:night_vision'), 3600, 1))
.register()
mods.rustic.alchemy.recipeBuilder()
.input(item('minecraft:stone'), item('minecraft:stone'), item('minecraft:stone'))
.modifier(item('minecraft:clay'))
.fluidInput(fluid('lava') * 500)
.advanced()
.output(item('minecraft:diamond'))
.register()
mods.rustic.alchemy.recipeBuilder()
.input(item('minecraft:cobblestone'), item('minecraft:cobblestone'))
.fluidInput(fluid('lava') * 25)
.bottle(item('minecraft:bucket'))
.output(item('minecraft:lava_bucket'))
.register()Removing Recipes
Removes the given recipe from the recipe list:
groovymods.rustic.alchemy.remove(ICondenserRecipe)Removes all recipes that match the given input:
groovymods.rustic.alchemy.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.rustic.alchemy.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.rustic.alchemy.removeAll()
Example
mods.rustic.alchemy.removeByInput(item('minecraft:sugar'))
mods.rustic.alchemy.removeByOutput(item('rustic:elixir').withNbt(['ElixirEffects': [['Effect': 'minecraft:night_vision', 'Duration': 3600, 'Amplifier': 0]]]))
mods.rustic.alchemy.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.rustic.alchemy.streamRecipes()
