Skip to content

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.Knowledge

Adding Entries

  • Adds entries in the format id, formatting:

    groovy
    mods.botania.knowledge.add(String, TextFormatting)
  • Adds entries in the format id, formatting, autoUnlock:

    groovy
    mods.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:

    groovy
    mods.botania.knowledge.streamKnowledgeTypes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.