Arc Furnace (Immersive Engineering)
Description
Converts 1 input itemstack with up to 4 additional inputs into an output itemstack and an optional 'slag' itemstack, taking time and using rf power.
Identifier
Refer to this via any of the following:
mods.ie.arc_furnace
mods.ie.arcfurnace
mods.ie.arcFurnace
mods.ie.ArcFurnace
mods.immersiveengineering.arc_furnace/* Used as page default */
mods.immersiveengineering.arcfurnace
mods.immersiveengineering.arcFurnace
mods.immersiveengineering.ArcFurnace
Adding Recipes
Add the given recipe to the recipe list:
groovymods.immersiveengineering.arc_furnace.add(ArcFurnaceRecipe)
Adds recipes in the format
output
,input
,additives
,slag
,time
,energyPerTick
:groovymods.immersiveengineering.arc_furnace.add(ItemStack, IIngredient, List<IIngredient>, ItemStack, int, int)
Recipe Builder
Just like other recipe types, the Arc Furnace also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.immersiveengineering.arc_furnace.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 0 and less than or equal to 5.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. Requires not null.groovyslag(ItemStack)
int
. Sets the time in ticks the recipe takes to process. Requires greater than 0. (Default0
).groovytime(int)
IIngredient
. Sets the item input. Requires not null.groovymainInput(IIngredient)
int
. Sets the amount of power consumed per tick. Requires greater than 0. (Default0
).groovyenergyPerTick(int)
String
. Sets the special recipe type. Default options areAlloying
,Ores
, andRecycling
.groovyores() alloying() recycling() specialRecipeType(String)
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.ArcFurnaceRecipe
).groovyregister()
Example
mods.immersiveengineering.arc_furnace.recipeBuilder()
.mainInput(item('minecraft:diamond'))
.input(item('minecraft:diamond'), ore('ingotGold'))
.output(item('minecraft:clay'))
.time(100)
.energyPerTick(100)
.slag(item('minecraft:gold_nugget'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.immersiveengineering.arc_furnace.remove(ArcFurnaceRecipe)
Removes all recipes that match the given input:
groovymods.immersiveengineering.arc_furnace.removeByInput(IIngredient, List<IIngredient>)
Removes all recipes that match the given input:
groovymods.immersiveengineering.arc_furnace.removeByInput(IIngredient...)
Removes all recipes that match the given input:
groovymods.immersiveengineering.arc_furnace.removeByInput(List<IIngredient>)
Removes all recipes that match the given output:
groovymods.immersiveengineering.arc_furnace.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.immersiveengineering.arc_furnace.removeAll()
Example
mods.immersiveengineering.arc_furnace.removeByInput(item('immersiveengineering:metal:18'), item('immersiveengineering:material:17'))
mods.immersiveengineering.arc_furnace.removeByOutput(item('immersiveengineering:metal:7'))
mods.immersiveengineering.arc_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.arc_furnace.streamRecipes()