public enum ModuleLoadTime extends java.lang.Enum<ModuleLoadTime>
Enum Constant and Description |
---|
AFTER_HANDLERS_LOADING
When used, the module will be enabled after all the managers were completely loaded.
|
AFTER_MODULE_DATA_LOAD
When used, the module will be enabled after its data was loaded by calling the
PluginModule.loadData(SuperiorSkyblock) method. |
BEFORE_WORLD_CREATION
When used, the module will be enabled before the plugin loads the worlds for the islands.
|
NORMAL
When used, the module will be enabled after the worlds are loaded into the game.
|
Modifier and Type | Method and Description |
---|---|
static ModuleLoadTime |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModuleLoadTime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModuleLoadTime BEFORE_WORLD_CREATION
public static final ModuleLoadTime NORMAL
PluginModule.onEnable(SuperiorSkyblock)
method. Furthermore, the data of your module
was not yet loaded at this time. If you want to use your data in the PluginModule.onEnable(SuperiorSkyblock)
method, check out AFTER_MODULE_DATA_LOAD
.public static final ModuleLoadTime AFTER_MODULE_DATA_LOAD
PluginModule.loadData(SuperiorSkyblock)
method. Please note that not all the managers of the plugin
are loaded at this time, and using them inside your PluginModule.onEnable(SuperiorSkyblock)
may
lead to undefined behavior; access them at your own risk.public static final ModuleLoadTime AFTER_HANDLERS_LOADING
public static ModuleLoadTime[] values()
for (ModuleLoadTime c : ModuleLoadTime.values()) System.out.println(c);
public static ModuleLoadTime valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null