Class ServerLifecycleEvents
java.lang.Object
net.ixdarklord.coolcatcore.api.event.v2.common.ServerLifecycleEvents
The server's lifecycle, for dedicated and integrated servers alike.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceOnce the server is ready to tick.static interfaceBefore the levels load.static interfaceAfter the server has shut down.static interfaceWhen the server begins shutting down, before the levels save.static interfaceWhen a player needs the server's datapack contents: once as they log in (joinedis true), and for every player after a datapack reload such as/reload(joinedis false). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventInvoker<ServerLifecycleEvents.Started>static final EventInvoker<ServerLifecycleEvents.Starting>static final EventInvoker<ServerLifecycleEvents.Stopped>static final EventInvoker<ServerLifecycleEvents.Stopping>static final EventInvoker<ServerLifecycleEvents.SyncDataPackContents> -
Method Summary
-
Field Details
-
STARTING
-
STARTED
-
STOPPING
-
STOPPED
-
SYNC_DATA_PACK_CONTENTS
public static final EventInvoker<ServerLifecycleEvents.SyncDataPackContents> SYNC_DATA_PACK_CONTENTS
-