Class ServerPlayConnectionEvents
java.lang.Object
net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents
public final class ServerPlayConnectionEvents extends Object
Offers access to events related to the connection to a client on a logical server while a client is in game.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServerPlayConnectionEvents.Disconnectstatic interfaceServerPlayConnectionEvents.Initstatic interfaceServerPlayConnectionEvents.Join -
Field Summary
Fields Modifier and Type Field Description static Event<ServerPlayConnectionEvents.Disconnect>DISCONNECTAn event for the disconnection of the server play network handler.static Event<ServerPlayConnectionEvents.Init>INITEvent indicating a connection entered the PLAY state, ready for registering channel handlers.static Event<ServerPlayConnectionEvents.Join>JOINAn 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.
-