Class LifecycleEvents
java.lang.Object
io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents
Holds various types of lifecycle events for
use when creating event handler configurations
in
LifecycleEventManager.- Since:
- 1.20.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LifecycleEventType.Prioritizable<LifecycleEventOwner, ReloadableRegistrarEvent<Commands>> This event is for registering commands to the server's brigadier command system.This event is for informing the server about any available datapacks from other sources such as inside a plugin's jar.static final TagEventTypeProviderThese events are for registering tags to the server's tag system. -
Method Summary
-
Field Details
-
COMMANDS
public static final LifecycleEventType.Prioritizable<LifecycleEventOwner, ReloadableRegistrarEvent<Commands>> COMMANDSThis event is for registering commands to the server's brigadier command system. You can register a handler for this event inJavaPlugin.onEnable()orPluginBootstrap.bootstrap(BootstrapContext).- Since:
- 1.20.6
- See Also:
-
TAGS
These events are for registering tags to the server's tag system. You can register a handler for these events only inPluginBootstrap.bootstrap(BootstrapContext).- Since:
- 1.21.1
-
DATAPACK_DISCOVERY
@Experimental public static final LifecycleEventType.Prioritizable<BootstrapContext, RegistrarEvent<DatapackRegistrar>> DATAPACK_DISCOVERYThis event is for informing the server about any available datapacks from other sources such as inside a plugin's jar. You can register a handler for this event only inPluginBootstrap.bootstrap(BootstrapContext).- Since:
- 1.21.4
- See Also:
-