Class ServerLoginConnectionEvents
java.lang.Object
net.fabricmc.fabric.api.networking.v1.ServerLoginConnectionEvents
Offers access to events related to the connection to a client on a logical server while a client is logging in.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Event
<ServerLoginConnectionEvents.Disconnect> An event for the disconnection of the server login network handler.static final Event
<ServerLoginConnectionEvents.Init> Event indicating a connection entered the LOGIN state, ready for registering query response handlers.static final Event
<ServerLoginConnectionEvents.QueryStart> An event for the start of login queries of the server login network handler. -
Method Summary
-
Field Details
-
INIT
Event indicating a connection entered the LOGIN state, ready for registering query response handlers.- See Also:
-
QUERY_START
An event for the start of login queries of the server login network handler. This event may be used to registerlogin query response handlers
usingServerLoginNetworking.registerReceiver(ServerLoginNetworkHandler, Identifier, ServerLoginNetworking.LoginQueryResponseHandler)
since this event is fired just before the first login query response is processed.You may send login queries to the connected client using the provided
PacketSender
. -
DISCONNECT
An event for the disconnection of the server login network handler.No packets should be sent when this event is invoked.
-