Class ServerLoginConnectionEvents
java.lang.Object
net.fabricmc.fabric.api.networking.v1.ServerLoginConnectionEvents
public final class ServerLoginConnectionEvents extends Object
Offers access to events related to the connection to a client on a logical server while a client is logging in.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ServerLoginConnectionEvents.Disconnect
static interface
ServerLoginConnectionEvents.Init
static interface
ServerLoginConnectionEvents.QueryStart
-
Field Summary
Fields Modifier and Type Field Description static Event<ServerLoginConnectionEvents.Disconnect>
DISCONNECT
An event for the disconnection of the server login network handler.static Event<ServerLoginConnectionEvents.Init>
INIT
Event indicating a connection entered the LOGIN state, ready for registering query response handlers.static Event<ServerLoginConnectionEvents.QueryStart>
QUERY_START
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. -
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.
-