Class ModuleBootstraps.Context
java.lang.Object
com.ultikits.ultitools.bootstrap.ModuleBootstraps.Context
- All Implemented Interfaces:
ModuleBootstrapContext
- Enclosing class:
ModuleBootstraps
private static final class ModuleBootstraps.Context
extends Object
implements ModuleBootstrapContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
contributions
-
logger
-
-
Constructor Details
-
Context
Context(ModuleContributions contributions, Logger parent)
-
-
Method Details
-
moduleName
- Specified by:
moduleNamein interfaceModuleBootstrapContext- Returns:
- the name declared by this module, or its JAR filename if no name was declared
-
moduleJar
- Specified by:
moduleJarin interfaceModuleBootstrapContext- Returns:
- the absolute, normalized path of this module's JAR
-
logger
- Specified by:
loggerin interfaceModuleBootstrapContext- Returns:
- this module's early-start JUL logger, forwarded to Paper's bootstrap logger
-
enchantments
- Specified by:
enchantmentsin interfaceModuleBootstrapContext- Returns:
- custom enchantments this module adds; entries take effect only if bootstrap() returns normally
-
tags
- Specified by:
tagsin interfaceModuleBootstrapContext- Returns:
- tag additions and new tags this module contributes; pure data, replayed on every data reload
-
datapacks
- Specified by:
datapacksin interfaceModuleBootstrapContext- Returns:
- data packs bundled in this module's JAR under
datapacks/<name>/
-