Class ClientPlayConnectionEvents
java.lang.Object
net.fabricmc.fabric.api.client.networking.v1.ClientPlayConnectionEvents
Offers access to events related to the connection to a server on a logical client.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionAn event for the disconnection of the client play network handler.static Event<ClientPlayConnectionEvents.Init>
Event indicating a connection entered the PLAY state, ready for registering channel handlers.static Event<ClientPlayConnectionEvents.Join>
An event for notification when the client play network handler is ready to send packets to the server. -
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 client play network handler is ready to send packets to the server.At this stage, the network handler is ready to send packets to the server. Since the client's local state has been setup.
-
DISCONNECT
An event for the disconnection of the client play network handler.No packets should be sent when this event is invoked.
-