public final class ServerLifecycleEvents extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ServerLifecycleEvents.EndDataPackReload |
static interface |
ServerLifecycleEvents.ServerStarted |
static interface |
ServerLifecycleEvents.ServerStarting |
static interface |
ServerLifecycleEvents.ServerStopped |
static interface |
ServerLifecycleEvents.ServerStopping |
static interface |
ServerLifecycleEvents.StartDataPackReload |
Modifier and Type | Field and Description |
---|---|
static Event<ServerLifecycleEvents.EndDataPackReload> |
END_DATA_PACK_RELOAD
Called after a Minecraft server has reloaded data packs.
|
static Event<ServerLifecycleEvents.ServerStarted> |
SERVER_STARTED
Called when a Minecraft server has started and is about to tick for the first time.
|
static Event<ServerLifecycleEvents.ServerStarting> |
SERVER_STARTING
Called when a Minecraft server is starting.
|
static Event<ServerLifecycleEvents.ServerStopped> |
SERVER_STOPPED
Called when a Minecraft server has stopped.
|
static Event<ServerLifecycleEvents.ServerStopping> |
SERVER_STOPPING
Called when a Minecraft server has started shutting down.
|
static Event<ServerLifecycleEvents.StartDataPackReload> |
START_DATA_PACK_RELOAD
Called before a Minecraft server reloads data packs.
|
public static final Event<ServerLifecycleEvents.ServerStarting> SERVER_STARTING
This occurs before the player manager
and any worlds are loaded.
public static final Event<ServerLifecycleEvents.ServerStarted> SERVER_STARTED
At this stage, all worlds are live.
public static final Event<ServerLifecycleEvents.ServerStopping> SERVER_STOPPING
For example, an integrated server will begin stopping, but it's client may continue to run.
All worlds are still present and can be modified.
public static final Event<ServerLifecycleEvents.ServerStopped> SERVER_STOPPED
For example, an integrated server
will begin stopping, but it's client may continue to run.
Meanwhile for a dedicated server
, this will be the last event called.
public static final Event<ServerLifecycleEvents.StartDataPackReload> START_DATA_PACK_RELOAD
public static final Event<ServerLifecycleEvents.EndDataPackReload> END_DATA_PACK_RELOAD
If reloading data packs was unsuccessful, the current data packs will be kept.