Stygian Iron Anvil (Woot)
Description
Has a catalyst (which may or may not be consumed) placed on the anvil, with the input items thrown atop the base.
Note
The anvil must be above a Magma Block and then right clicked with a Hammer, converting the input items into the output item.
Warning
While more than 6 items can function as the input of a Stygian Iron Anvil recipe, only the first 6 are shown in JEI.
Identifier
Refer to this via any of the following:
mods.woot.stygian_iron_anvil/* Used as page default */
mods.woot.stygianironanvil
mods.woot.stygianIronAnvil
mods.woot.StygianIronAnvil
mods.woot.anvil
mods.woot.Anvil
Adding Recipes
Add the given recipe to the recipe list:
groovymods.woot.stygian_iron_anvil.add(IAnvilRecipe)
Recipe Builder
Just like other recipe types, the Stygian Iron Anvil also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.woot.stygian_iron_anvil.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 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>)
ItemStack
. Sets the itemstack used for the base. Requires not isEmpty. (DefaultItemStack.EMPTY
).groovybase(ItemStack)
boolean
. Sets if the base is used as a catalyst and not consumed. (Defaultfalse
).groovypreserveBase() preserveBase(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
oripsis.woot.crafting.IAnvilRecipe
).groovyregister()
Example
mods.woot.stygian_iron_anvil.recipeBuilder()
.input(item('minecraft:diamond'),item('minecraft:diamond'),item('minecraft:diamond'))
.base(item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.preserveBase(true)
.register()
mods.woot.stygian_iron_anvil.recipeBuilder()
.input(item('minecraft:diamond'), item('minecraft:gold_ingot'), item('minecraft:iron_ingot'), item('minecraft:diamond_block'), item('minecraft:gold_block'), item('minecraft:iron_bars'), item('minecraft:magma'))
.base(item('minecraft:clay'))
.output(item('minecraft:clay'))
.preserveBase()
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.woot.stygian_iron_anvil.remove(IAnvilRecipe)
Removes all recipes that match the given base item:
groovymods.woot.stygian_iron_anvil.removeByBase(ItemStack)
Removes all recipes that match the given output:
groovymods.woot.stygian_iron_anvil.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.woot.stygian_iron_anvil.removeAll()
Example
mods.woot.stygian_iron_anvil.removeByBase(item('minecraft:iron_bars'))
mods.woot.stygian_iron_anvil.removeByOutput(item('woot:stygianironplate'))
mods.woot.stygian_iron_anvil.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.woot.stygian_iron_anvil.streamRecipes()