Alloy Kiln (Immersive Engineering)
Description
Converts two input itemstacks into an output itemstack, consuming fuel (based on burn time).
Identifier
Refer to this via any of the following:
mods.ie.alloy_kiln
mods.ie.alloykiln
mods.ie.alloyKiln
mods.ie.AlloyKiln
mods.immersiveengineering.alloy_kiln/* Used as page default */
mods.immersiveengineering.alloykiln
mods.immersiveengineering.alloyKiln
mods.immersiveengineering.AlloyKiln
Adding Recipes
Adds recipes in the format
output
,input0
,input1
,time
:groovymods.immersiveengineering.alloy_kiln.add(ItemStack, IIngredient, IIngredient, int)
Recipe Builder
Just like other recipe types, the Alloy Kiln also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.immersiveengineering.alloy_kiln.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 2.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>)
int
. Sets the time in ticks the recipe takes to process. Requires greater than or equal to 0. (Default0
).groovytime(int)
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
orblusunrize.immersiveengineering.api.crafting.AlloyRecipe
).groovyregister()
Example
mods.immersiveengineering.alloy_kiln.recipeBuilder()
.input(item('minecraft:diamond'), ore('ingotGold'))
.output(item('minecraft:clay'))
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.immersiveengineering.alloy_kiln.removeByInput(ItemStack, ItemStack)
Removes all recipes that match the given output:
groovymods.immersiveengineering.alloy_kiln.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.immersiveengineering.alloy_kiln.removeAll()
Example
mods.immersiveengineering.alloy_kiln.removeByInput(item('minecraft:gold_ingot'), item('immersiveengineering:metal:3'))
mods.immersiveengineering.alloy_kiln.removeByOutput(item('immersiveengineering:metal:6'))
mods.immersiveengineering.alloy_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.immersiveengineering.alloy_kiln.streamRecipes()