Sigils (Bewitchment)
Description
Converts up to 25 itemstacks into a single output itemstack.
Identifier
Refer to this via any of the following:
mods.bewitchment.sigil/* Used as page default */
mods.bewitchment.SigilAdding Recipes
Adds the recipe:
groovymods.bewitchment.sigil.add(SigilRecipe)
Recipe Builder
Just like other recipe types, the Sigils also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.bewitchment.sigil.recipeBuilder()
ResourceLocation. Sets the Resource Location of the recipe.groovyname(String) name(ResourceLocation)IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 25.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>)
First validates the builder, returning
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullorcom.bewitchment.api.registry.SigilRecipe).groovyregister()
Removing Recipes
Removes the recipe with the given Resource Location:
groovymods.bewitchment.sigil.remove(ResourceLocation)Removes the recipe with the given String as its Resource Location:
groovymods.bewitchment.sigil.remove(String)Removes the recipe:
groovymods.bewitchment.sigil.remove(SigilRecipe)Removes all recipes that match the given input:
groovymods.bewitchment.sigil.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.bewitchment.sigil.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.bewitchment.sigil.removeAll()
Example
mods.bewitchment.sigil.remove(resource('bewitchment:mending'))
mods.bewitchment.sigil.removeByInput(item('bewitchment:bottle_of_blood'))
mods.bewitchment.sigil.removeByOutput(item('bewitchment:sigil_disorientation'))
mods.bewitchment.sigil.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.bewitchment.sigil.streamRecipes()
