Electric Furnace (Factory Tech)
Description
Converts an input itemstack into an output itemstack, with the ability to control if stone parts are allowed.
Identifier
Refer to this via any of the following:
mods.factorytech.high_tech_furnace/* Used as page default */
mods.factorytech.hightechfurnace
mods.factorytech.highTechFurnace
mods.factorytech.HighTechFurnace
Adding Recipes
Add the given recipe to the recipe list:
groovymods.factorytech.high_tech_furnace.add(MachineRecipes.MachineRecipe<ItemStack, ItemStack>)
Recipe Builder
Just like other recipe types, the Electric Furnace 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.factorytech.high_tech_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>)
boolean
. Sets if the recipe can use stone parts. (Defaultfalse
).groovyallowStoneParts() allowStoneParts(boolean)
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
ordalapo.factech.auxiliary.MachineRecipes$MachineRecipe<net.minecraft.item.ItemStack, net.minecraft.item.ItemStack>
).groovyregister()
Example
mods.factorytech.high_tech_furnace.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.register()
mods.factorytech.high_tech_furnace.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.allowStoneParts()
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.factorytech.high_tech_furnace.remove(MachineRecipes.MachineRecipe<ItemStack, ItemStack>)
Removes all recipes that match the given input:
groovymods.factorytech.high_tech_furnace.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.factorytech.high_tech_furnace.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.factorytech.high_tech_furnace.removeAll()
Example
mods.factorytech.high_tech_furnace.removeByInput(item('minecraft:cactus'))
mods.factorytech.high_tech_furnace.removeByOutput(item('minecraft:iron_ingot'))
mods.factorytech.high_tech_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.factorytech.high_tech_furnace.streamRecipes()