Lexicon Category (Botania)
Description
Category creates a new entry on the front page of the Lexica Botania.
Identifier
The identifier mods.botania.category will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
mods.botania.category/* Used as page default */
mods.botania.CategoryAdding Entries
Add the given recipe to the recipe list:
groovymods.botania.category.add(LexiconCategory)Adds a Category to the Lexica Botania in the format
name,iconand a priority of 5:groovymods.botania.category.add(String, ResourceLocation)Adds a Category to the Lexica Botania in the format
name,icon,priority:groovymods.botania.category.add(String, ResourceLocation, int)
Example
mods.botania.category.add('test', resource('minecraft:textures/items/apple.png'))
mods.botania.category.add('first', resource('minecraft:textures/items/clay_ball.png'), 100)Removing Entries
Removes the given recipe from the recipe list:
groovymods.botania.category.remove(LexiconCategory)Removes a Category matching the given name:
groovymods.botania.category.remove(String)Removes a Category matching the given name:
groovymods.botania.category.removeCategory(String)Removes all registered recipes:
groovymods.botania.category.removeAll()
Example
mods.botania.category.remove('botania.category.alfhomancy')
mods.botania.category.removeCategory('botania.category.misc')
mods.botania.category.removeAll()Getting the value of entries
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.botania.category.streamRecipes()Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.botania.category.streamCategories()
