Class ServerPlayConnectionEvents
java.lang.Object
net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents
Offers access to events related to the connection to a client on a logical server while a client is in game.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Event<ServerPlayConnectionEvents.Disconnect>
An event for the disconnection of the server play network handler.static final Event<ServerPlayConnectionEvents.Init>
Event indicating a connection entered the PLAY state, ready for registering channel handlers.static final Event<ServerPlayConnectionEvents.Join>
An event for notification when the server play network handler is ready to send packets to the client. -
Method Summary
-
Field Details
-
INIT
Event indicating a connection entered the PLAY state, ready for registering channel handlers. -
JOIN
An event for notification when the server play network handler is ready to send packets to the client.At this stage, the network handler is ready to send packets to the client.
-
DISCONNECT
An event for the disconnection of the server play network handler.No packets should be sent when this event is invoked.
-