Lexicon Knowledge (Botania)
Description
Creates a new type of knowledge that Lexica Botania entries may be gated with. Can only be created.
Identifier
The identifier mods.botania.knowledge will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
groovy
mods.botania.knowledge/* Used as page default */
mods.botania.KnowledgeAdding Entries
Adds entries in the format
id,formatting:groovymods.botania.knowledge.add(String, TextFormatting)Adds entries in the format
id,formatting,autoUnlock:groovymods.botania.knowledge.add(String, TextFormatting, boolean)
Example
groovy
mods.botania.knowledge.add('newType', TextFormatting.RED, true)Getting the value of entries
Iterates through every entry in the registry:
groovymods.botania.knowledge.streamKnowledgeTypes()
