ClientLoginNetworking

public final class ClientLoginNetworking

Offers access to login stage client-side networking functionalities.

The Minecraft login protocol only allows the client to respond to a server's request, but not initiate one of its own.

See also

Types

LoginQueryRequestHandler
Link copied to clipboard
public interface LoginQueryRequestHandler

Functions

getGlobalReceivers
Link copied to clipboard
static Set<IdentifiergetGlobalReceivers()
Gets all query request channel names which global receivers are registered for.A global receiver is registered to all connections, in the present and future.
registerGlobalReceiver
Link copied to clipboard
static boolean registerGlobalReceiver(Identifier channelName, ClientLoginNetworking.LoginQueryRequestHandler queryHandler)
Registers a handler to a query request channel.A global receiver is registered to all connections, in the present and future.
registerReceiver
Link copied to clipboard
static boolean registerReceiver(Identifier channelName, ClientLoginNetworking.LoginQueryRequestHandler queryHandler)
Registers a handler to a query request channel.
unregisterGlobalReceiver
Link copied to clipboard
@Nullable()
static ClientLoginNetworking.LoginQueryRequestHandler unregisterGlobalReceiver(Identifier channelName)
Removes the handler of a query request channel.A global receiver is registered to all connections, in the present and future.
unregisterReceiver
Link copied to clipboard
@Nullable()
static ClientLoginNetworking.LoginQueryRequestHandler unregisterReceiver(Identifier channelName)
Removes the handler of a query request channel.

Sources

jvm source
Link copied to clipboard