Blast Furnace (Immersive Engineering)
Description
Converts an input itemstack into an output itemstack and an optional 'slag' itemstack, taking time and consuming fuel (based on Blast Furnace Fuels).
Identifier
Refer to this via any of the following:
mods.ie.blast_furnace
mods.ie.blastfurnace
mods.ie.blastFurnace
mods.ie.BlastFurnace
mods.immersiveengineering.blast_furnace/* Used as page default */
mods.immersiveengineering.blastfurnace
mods.immersiveengineering.blastFurnace
mods.immersiveengineering.BlastFurnace
Adding Recipes
Add the given recipe to the recipe list:
groovymods.immersiveengineering.blast_furnace.add(BlastFurnaceRecipe)
Adds recipes in the format
output
,input
,time
,slag
:groovymods.immersiveengineering.blast_furnace.add(ItemStack, IIngredient, int, ItemStack)
Recipe Builder
Just like other recipe types, the Blast Furnace also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.immersiveengineering.blast_furnace.recipeBuilder()
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>)
ItemStack
. Sets the item output as slag.groovyslag(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.BlastFurnaceRecipe
).groovyregister()
Example
mods.immersiveengineering.blast_furnace.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:clay'))
.time(100)
.slag(item('minecraft:gold_nugget'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.immersiveengineering.blast_furnace.remove(BlastFurnaceRecipe)
Removes all recipes that match the given input:
groovymods.immersiveengineering.blast_furnace.removeByInput(ItemStack)
Removes all recipes that match the given output:
groovymods.immersiveengineering.blast_furnace.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.immersiveengineering.blast_furnace.removeAll()
Example
mods.immersiveengineering.blast_furnace.removeByInput(item('minecraft:iron_block'))
mods.immersiveengineering.blast_furnace.removeByOutput(item('immersiveengineering:metal:8'))
mods.immersiveengineering.blast_furnace.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.blast_furnace.streamRecipes()