Redstone Furnace - Pyrolytic Conversion (Thermal Expansion)
Description
Converts an input itemstack into an output itemstack and creosote amount, costing power and taking time based on the power cost.
Identifier
Refer to this via any of the following:
mods.thermal.furnace_pyrolysis
mods.thermal.furnacepyrolysis
mods.thermal.furnacePyrolysis
mods.thermal.FurnacePyrolysis
mods.thermalexpansion.furnace_pyrolysis/* Used as page default */
mods.thermalexpansion.furnacepyrolysis
mods.thermalexpansion.furnacePyrolysis
mods.thermalexpansion.FurnacePyrolysis
Adding Recipes
Adds recipes in the format
energy
,input
,output
,creosote
:groovymods.thermalexpansion.furnace_pyrolysis.add(int, IIngredient, ItemStack, int)
Example
mods.thermalexpansion.furnace_pyrolysis.add(1000, item('minecraft:obsidian') * 2, item('minecraft:clay'), 1000)
Recipe Builder
Just like other recipe types, the Redstone Furnace - Pyrolytic Conversion also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.thermalexpansion.furnace_pyrolysis.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>)
int
. Sets the energy cost of the recipe. Requires greater than 0. (DefaultFurnaceManager.DEFAULT_ENERGY
).groovyenergy(int)
int
. Sets the amount of creosote fluid output by the recipe. Requires greater than or equal to 0. (Default0
).groovycreosote(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
orcofh.thermalexpansion.util.managers.machine.FurnaceManager$FurnaceRecipe
).groovyregister()
Example
mods.thermalexpansion.furnace_pyrolysis.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond') * 2)
.creosote(100)
.register()
mods.thermalexpansion.furnace_pyrolysis.recipeBuilder()
.input(item('minecraft:gold_ingot') * 2)
.output(item('minecraft:clay'))
.creosote(1000)
.energy(1000)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.thermalexpansion.furnace_pyrolysis.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.thermalexpansion.furnace_pyrolysis.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.thermalexpansion.furnace_pyrolysis.removeAll()
Example
mods.thermalexpansion.furnace_pyrolysis.removeByInput(item('minecraft:cactus:*'))
mods.thermalexpansion.furnace_pyrolysis.removeByOutput(item('thermalfoundation:storage_resource:1'))
mods.thermalexpansion.furnace_pyrolysis.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.thermalexpansion.furnace_pyrolysis.streamRecipes()