ClientLoginConnectionEvents

public final class ClientLoginConnectionEvents

Offers access to events related to the connection to a server on the client while the server is processing the client's login request.

Types

Disconnect
Link copied to clipboard
public interface Disconnect
ClientLoginConnectionEvents#DISCONNECT
Init
Link copied to clipboard
public interface Init
ClientLoginConnectionEvents#INIT
QueryStart
Link copied to clipboard
public interface QueryStart
ClientLoginConnectionEvents#QUERY_START

Properties

DISCONNECT
Link copied to clipboard
public final static Event<ClientLoginConnectionEvents.DisconnectDISCONNECT
An event for when the client's login process has ended due to disconnection.
INIT
Link copied to clipboard
public final static Event<ClientLoginConnectionEvents.InitINIT
Event indicating a connection entered the LOGIN state, ready for registering query request handlers.This event may be used by mods to prepare their client side state.This event does not guarantee that a login attempt will be successful.
QUERY_START
Link copied to clipboard
public final static Event<ClientLoginConnectionEvents.QueryStartQUERY_START
An event for when the client has started receiving login queries.A client can only start receiving login queries when a server has sent the first login query.Vanilla servers will typically never make the client enter this login phase, but it is not a guarantee that theconnected server is a vanilla server since a modded server or proxy may have no login queries to send to the clientand therefore bypass the login query phase.If this event is fired then it is a sign that a server is not a vanilla server or the server is behind a proxy whichis capable of handling login queries.

Sources

jvm source
Link copied to clipboard