Package dev.cwhead.GravesX.module
Class ModuleManager.LoadedModule
java.lang.Object
dev.cwhead.GravesX.module.ModuleManager.LoadedModule
- Enclosing class:
ModuleManager
Holds a loaded module instance and its metadata.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ModuleClassLoaderClass loader used to load the module jar.final ModuleContextRuntime context provided to the module.booleanWhether the module is currently enabled.final ModuleInfoModule descriptor parsed from module.yml.final GravesXModuleModule main instance. -
Constructor Summary
ConstructorsConstructorDescriptionLoadedModule(ModuleInfo info, ModuleClassLoader cl, GravesXModule instance, ModuleContext ctx) Creates a loaded module bundle. -
Method Summary
-
Field Details
-
info
Module descriptor parsed from module.yml. -
cl
Class loader used to load the module jar. -
instance
Module main instance. -
context
Runtime context provided to the module. -
enabled
public boolean enabledWhether the module is currently enabled.
-
-
Constructor Details
-
LoadedModule
LoadedModule(ModuleInfo info, ModuleClassLoader cl, GravesXModule instance, ModuleContext ctx) Creates a loaded module bundle.- Parameters:
info- Module metadata.cl- Class loader for the module.instance- Module main instance.ctx- Module runtime context.
-