Interface ModuleBootstrapContext

All Known Implementing Classes:
ModuleBootstraps.Context

@NonExtendable public interface ModuleBootstrapContext
Identity supplied to a ModuleBootstrap; modules must not implement this interface.
  • Method Details

    • moduleName

      String moduleName()
      Returns:
      the name declared by this module, or its JAR filename if no name was declared
    • moduleJar

      Path moduleJar()
      Returns:
      the absolute, normalized path of this module's JAR
    • logger

      Logger logger()
      Returns:
      this module's early-start JUL logger, forwarded to Paper's bootstrap logger
    • enchantments

      @Experimental EnchantmentChannel enchantments()
      Returns:
      custom enchantments this module adds; entries take effect only if bootstrap() returns normally
    • tags

      @Experimental TagChannel tags()
      Returns:
      tag additions and new tags this module contributes; pure data, replayed on every data reload
    • datapacks

      @Experimental DatapackChannel datapacks()
      Returns:
      data packs bundled in this module's JAR under datapacks/<name>/