Igneous Extruder (Thermal Expansion)
Description
Converts a variable amount of lava and water into a specific output itemstack.
Identifier
Refer to this via any of the following:
mods.thermal.extruder
mods.thermal.Extruder
mods.thermalexpansion.extruder/* Used as page default */
mods.thermalexpansion.Extruder
Adding Recipes
Adds recipes in the format
energy
,input
,fluidHot
,fluidCold
,sedimentary
:groovymods.thermalexpansion.extruder.add(int, ItemStack, int, int, boolean)
Example
mods.thermalexpansion.extruder.add(1000, item('minecraft:gold_block'), 100, 1000, false)
Recipe Builder
Just like other recipe types, the Igneous Extruder also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.thermalexpansion.extruder.recipeBuilder()
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. (DefaultExtruderManager.DEFAULT_ENERGY
).groovyenergy(int)
int
. Sets the amount of lava consumed by the recipe. Requires greater than or equal to 0. (Default0
).groovyfluidHot(int)
int
. Sets the amount of water consumed by the recipe. Requires greater than or equal to 0. (Default0
).groovyfluidCold(int)
boolean
. Sets if the recipe requires the Clastic Deposition augment installed. (Defaultfalse
).groovysedimentary() sedimentary(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
orcofh.thermalexpansion.util.managers.machine.ExtruderManager$ExtruderRecipe
).groovyregister()
Example
mods.thermalexpansion.extruder.recipeBuilder()
.fluidHot(100)
.fluidCold(1000)
.output(item('minecraft:clay'))
.register()
mods.thermalexpansion.extruder.recipeBuilder()
.fluidHot(100)
.fluidCold(1000)
.output(item('minecraft:gold_ingot'))
.sedimentary()
.energy(1000)
.register()
Removing Recipes
Removes the given IIngredient input from the given Igneous Extruder mode, with
true
indicating sedimentary, andfalse
indicating the normal recipe map:groovymods.thermalexpansion.extruder.removeByInput(boolean, IIngredient)
Removes the given IIngredient input from the given Igneous Extruder mode, with
true
indicating sedimentary, andfalse
indicating the normal recipe map:groovymods.thermalexpansion.extruder.removeByInput(IIngredient)
Removes the given IIngredient output from the given Igneous Extruder mode, with
true
indicating sedimentary, andfalse
indicating the normal recipe map:groovymods.thermalexpansion.extruder.removeByOutput(boolean, IIngredient)
Removes the given IIngredient output from the given Igneous Extruder mode, with
true
indicating sedimentary, andfalse
indicating the normal recipe map:groovymods.thermalexpansion.extruder.removeByOutput(IIngredient)
Removes all recipes for the given type, with
true
indicating sedimentary, andfalse
indicating the normal recipe map:groovymods.thermalexpansion.extruder.removeByType(boolean)
Removes all registered recipes:
groovymods.thermalexpansion.extruder.removeAll()
Example
mods.thermalexpansion.extruder.removeByInput(false, fluid('lava'))
mods.thermalexpansion.extruder.removeByInput(fluid('water'))
mods.thermalexpansion.extruder.removeByOutput(true, item('minecraft:gravel'))
mods.thermalexpansion.extruder.removeByOutput(item('minecraft:obsidian'))
mods.thermalexpansion.extruder.removeByType(true)
mods.thermalexpansion.extruder.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.extruder.streamRecipes()