Kiln (Atum 2)
Description
Smelts an input item into an output itemstack and giving experience similar to a Furnace, but can process up to 4 stacks simultaneously. Makes a copy of the vanilla furnace recipes, excluding entries on a blacklist.
Identifier
Refer to this via any of the following:
mods.atum.kiln/* Used as page default */
mods.atum.Kiln
Adding Recipes
Recipe Builder
Just like other recipe types, the Kiln also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.atum.kiln.recipeBuilder()
ResourceLocation
. Sets the Resource Location of the recipe.groovyname(String) name(ResourceLocation)
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.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>)
float
. Sets the experience gained by taking the output item out of the Kiln. Requires greater than or equal to 0. (Default0.0f
).groovyexperience(float)
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
orcom.teammetallurgy.atum.api.recipe.kiln.IKilnRecipe
).groovyregister()
Example
mods.atum.kiln.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:clay'))
.register()
mods.atum.kiln.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay') * 4)
.experience(0.5f)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.atum.kiln.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.atum.kiln.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.atum.kiln.removeAll()
Example
mods.atum.kiln.removeByInput(item('minecraft:netherrack'))
mods.atum.kiln.removeByOutput(item('minecraft:stone'))
mods.atum.kiln.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.atum.kiln.streamRecipes()