Interface BootstrapContext
- All Superinterfaces:
LifecycleEventOwner,PluginProviderContext
@Experimental
@NullMarked
@NonExtendable
public interface BootstrapContext
extends PluginProviderContext, LifecycleEventOwner
Represents the context provided to a
PluginBootstrap during both the bootstrapping and plugin
instantiation logic.
A bootstrap context may be used to access data or logic usually provided to Plugin instances
like the plugin's configuration or logger during the plugins bootstrap.-
Method Summary
Modifier and TypeMethodDescriptionGet the lifecycle event manager for registering handlers for lifecycle events allowed on theBootstrapContext.Methods inherited from interface io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner
getPluginMetaMethods inherited from interface io.papermc.paper.plugin.bootstrap.PluginProviderContext
getConfiguration, getDataDirectory, getLogger, getPluginSource
-
Method Details
-
getLifecycleManager
LifecycleEventManager<BootstrapContext> getLifecycleManager()Get the lifecycle event manager for registering handlers for lifecycle events allowed on theBootstrapContext.- Returns:
- the lifecycle event manager
-