Lexicon Knowledge (Botania)
Description
Creates a new type of knowledge that Lexica Botania entries may be gated with. Can only be created.
Identifier
Refer to this via any of the following:
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()
