Package dev.cwhead.GravesX.module
Class GravesXModule
java.lang.Object
dev.cwhead.GravesX.module.GravesXModule
Defines lifecycle hooks for a GravesX module.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called before the module is unloaded.void
Called when the module should become active.void
Called after construction when the module is loaded but not yet enabled.
-
Constructor Details
-
GravesXModule
public GravesXModule()
-
-
Method Details
-
onModuleLoad
Called after construction when the module is loaded but not yet enabled.- Parameters:
ctx
- Module context provided by the host.
-
onModuleEnable
Called when the module should become active. Register listeners/commands and start tasks here.- Parameters:
ctx
- Module context provided by the host.
-
onModuleDisable
Called before the module is unloaded. Unregister and release resources here.- Parameters:
ctx
- Module context provided by the host.
-