Mithriline Furnace (EssentialCraft 4)
Description
Converts various items into other items using ESPE.
Identifier
Refer to this via any of the following:
mods.ec4.mithriline_furnace
mods.ec4.mithrilinefurnace
mods.ec4.mithrilineFurnace
mods.ec4.MithrilineFurnace
mods.essentialcraft.mithriline_furnace/* Used as page default */
mods.essentialcraft.mithrilinefurnace
mods.essentialcraft.mithrilineFurnace
mods.essentialcraft.MithrilineFurnace
Adding Recipes
Recipe Builder
Just like other recipe types, the Mithriline Furnace also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.essentialcraft.mithriline_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>)
int
. Sets the ESPE cost for this recipe. Requires greater than or equal to 1. (Default0
).groovyespe(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
oressentialcraft.api.MithrilineFurnaceRecipe
).groovyregister()
Example
mods.essentialcraft.mithriline_furnace.recipeBuilder()
.input(item('minecraft:coal_block') * 3)
.output(item('minecraft:diamond_block'))
.espe(500)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.essentialcraft.mithriline_furnace.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.essentialcraft.mithriline_furnace.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.essentialcraft.mithriline_furnace.removeAll()
Example
mods.essentialcraft.mithriline_furnace.removeByInput(ore('dustGlowstone'))
mods.essentialcraft.mithriline_furnace.removeByOutput(item('minecraft:emerald'))
mods.essentialcraft.mithriline_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.essentialcraft.mithriline_furnace.streamRecipes()