Magician Table (EssentialCraft 4)
Description
A 5-slot processing machine using MRU. Can be upgraded with various plates to increase its speed.
Warning
Certain OreDict entries might give unexpected results when used in the Magician Table as inputs. Known entries include: ingotGold, gemEnderPearl.
Identifier
Refer to this via any of the following:
mods.ec4.magician_table
mods.ec4.magiciantable
mods.ec4.magicianTable
mods.ec4.MagicianTable
mods.essentialcraft.magician_table/* Used as page default */
mods.essentialcraft.magiciantable
mods.essentialcraft.magicianTable
mods.essentialcraft.MagicianTable
Adding Recipes
Add the given recipe to the recipe list:
groovymods.essentialcraft.magician_table.add(MagicianTableRecipe)
Recipe Builder
Just like other recipe types, the Magician Table also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.essentialcraft.magician_table.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 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>)
int
. Sets the base MRU cost for this recipe. This cost also equals the time needed to execute the recipe in ticks. Requires greater than or equal to 1. (Default0
).groovymru(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.MagicianTableRecipe
).groovyregister()
Example
mods.essentialcraft.magician_table.recipeBuilder()
.input(item('minecraft:diamond'), ore('ingotGold'), ore('ingotGold'), ore('stickWood'), ore('stickWood'))
.output(item('minecraft:iron_ingot'))
.mru(500)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.essentialcraft.magician_table.remove(MagicianTableRecipe)
Removes all recipes that match the given output:
groovymods.essentialcraft.magician_table.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.essentialcraft.magician_table.removeAll()
Example
mods.essentialcraft.magician_table.removeByOutput(item('essentialcraft:genitem'))
mods.essentialcraft.magician_table.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.magician_table.streamRecipes()