Class ClientPlayConnectionEvents
java.lang.Object
net.fabricmc.fabric.api.client.networking.v1.ClientPlayConnectionEvents
@Environment(CLIENT) public final class ClientPlayConnectionEvents extends Object
Offers access to events related to the connection to a server on a logical client.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ClientPlayConnectionEvents.Disconnect
static interface
ClientPlayConnectionEvents.Init
static interface
ClientPlayConnectionEvents.Join
-
Field Summary
Fields Modifier and Type Field Description static Event<ClientPlayConnectionEvents.Disconnect>
DISCONNECT
An event for the disconnection of the client play network handler.static Event<ClientPlayConnectionEvents.Init>
INIT
Event indicating a connection entered the PLAY state, ready for registering channel handlers.static Event<ClientPlayConnectionEvents.Join>
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.
-