abstract class PluginBase implements CommandOwner
The abstract base class for all plugins and modules. Provides common functionality for plugin lifecycle management (setup, start, shutdown), access to registries for events, commands, components, and configuration management.
java.lang.Object > PluginBase
Field Summary
state
Field state.
pluginManifest
Field pluginManifest.
pluginName
Field pluginName.
isPlugin
Field isPlugin.
config
Field config.
futures
Field futures.
registry
Field registry.
b
Field b.
Method Detail
ClientFeatureRegistry
new
ClientFeatureRegistry
(this.shutdownTasks, ()
Method ClientFeatureRegistry.
- Parameters:
this.shutdownTasksthis.shutdownTasks((
CommandRegistry
new
CommandRegistry
(this.shutdownTasks, ()
Method CommandRegistry.
- Parameters:
this.shutdownTasksthis.shutdownTasks((
EventRegistry
new
EventRegistry
(this.shutdownTasks, ()
Method EventRegistry.
- Parameters:
this.shutdownTasksthis.shutdownTasks((
BlockStateRegistry
new
BlockStateRegistry
(this.shutdownTasks, ()
Method BlockStateRegistry.
- Parameters:
this.shutdownTasksthis.shutdownTasks((
EntityRegistry
new
EntityRegistry
(this.shutdownTasks, ()
Method EntityRegistry.
- Parameters:
this.shutdownTasksthis.shutdownTasks((
TaskRegistry
new
TaskRegistry
(this.shutdownTasks, ()
Method TaskRegistry.
- Parameters:
this.shutdownTasksthis.shutdownTasks((
preLoad
CompletableFuture
preLoad
()
Method preLoad.
getName
String
getName
()
Method getName.
getDataDirectory
Path
getDataDirectory
()
Method getDataDirectory.
getClientFeatureRegistry
Method getClientFeatureRegistry.
getBlockStateRegistry
Method getBlockStateRegistry.
getEntityStoreRegistry
Method getEntityStoreRegistry.
getChunkStoreRegistry
Method getChunkStoreRegistry.
CodecMapRegistry
new
CodecMapRegistry
(this.shutdownTasks, mapCodec)
Method CodecMapRegistry.
- Parameters:
this.shutdownTasksthis.shutdownTasksmapCodecmapCodec
MapKeyMapRegistry
new
MapKeyMapRegistry
(this.shutdownTasks, mapCodec)
Method MapKeyMapRegistry.
- Parameters:
this.shutdownTasksthis.shutdownTasksmapCodecmapCodec
getBasePermission
String
getBasePermission
()
Method getBasePermission.
isDisabled
boolean
isDisabled
()
Method isDisabled.
isEnabled
boolean
isEnabled
()
Method isEnabled.
setup0
void
setup0
()
Method setup0.
IllegalArgumentException
new
IllegalArgumentException
(String.valueOf(this.state)
Method IllegalArgumentException.
- Parameters:
String.valueOf(this.stateString.valueOf(this.state
setup
void
setup
()
Method setup.
start0
void
start0
()
Method start0.
start
void
start
()
Method start.
shutdown0
void
shutdown0
(final boolean shutdown)
Method shutdown0.
- Parameters:
final booleanshutdown
shutdown
void
shutdown
()
Method shutdown.
cleanup
void
cleanup
(final boolean shutdown)
Method cleanup.
- Parameters:
final booleanshutdown
- See Also: