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 TypeFieldDescriptionAn event for the disconnection of the server play network handler.static Event<ServerPlayConnectionEvents.Init>
Event indicating a connection entered the PLAY state, ready for registering channel handlers.static 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.
-