Melter (Cyclic)
Description
Converts up to 4 input itemstacks into an output itemstack, while being placed above lava.
Identifier
Refer to this via any of the following:
mods.cyclicmagic.melter/* Used as page default */
mods.cyclicmagic.Melter
mods.cyclic.melter
mods.cyclic.MelterAdding Recipes
Add the given recipe to the recipe list:
groovymods.cyclicmagic.melter.add(RecipeMelter)
Recipe Builder
Just like other recipe types, the Melter 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.cyclicmagic.melter.recipeBuilder()
IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 4.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)FluidStackList. Sets the fluid outputs of the recipe. Requires exactly 1.groovyfluidOutput(FluidStack) fluidOutput(FluidStack...) fluidOutput(Collection<FluidStack>)
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. (returnsnullorcom.lothrazar.cyclicmagic.block.melter.RecipeMelter).groovyregister()
Example
mods.cyclicmagic.melter.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.fluidOutput(fluid('water') * 175)
.register()
mods.cyclicmagic.melter.recipeBuilder()
.input(ore('logWood'), ore('sand'), ore('gravel'), item('minecraft:diamond'))
.fluidOutput(fluid('lava') * 500)
.register()Removing Recipes
Removes the given recipe from the recipe list:
groovymods.cyclicmagic.melter.remove(RecipeMelter)Removes all recipes that match the given input:
groovymods.cyclicmagic.melter.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.cyclicmagic.melter.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.cyclicmagic.melter.removeAll()
Example
mods.cyclicmagic.melter.removeByInput(item('minecraft:snow'))
mods.cyclicmagic.melter.removeByOutput(fluid('amber'))
mods.cyclicmagic.melter.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.cyclicmagic.melter.streamRecipes()
