ServerLoginNetworking

public final class ServerLoginNetworking

Offers access to login stage server-side networking functionalities.

Server-side networking functionalities include receiving serverbound query responses and sending clientbound query requests.

See also

Types

LoginQueryResponseHandler
Link copied to clipboard
public interface LoginQueryResponseHandler
LoginSynchronizer
Link copied to clipboard
public interface LoginSynchronizer
Allows blocking client log-in until all all futures passed into waitFor are completed.

Functions

getGlobalReceivers
Link copied to clipboard
static Set<IdentifiergetGlobalReceivers()
Gets all channel names which global receivers are registered for.A global receiver is registered to all connections, in the present and future.
getServer
Link copied to clipboard
static MinecraftServer getServer(ServerLoginNetworkHandler handler)
Returns the Minecraft Server of a server login network handler.
registerGlobalReceiver
Link copied to clipboard
static boolean registerGlobalReceiver(Identifier channelName, ServerLoginNetworking.LoginQueryResponseHandler channelHandler)
Registers a handler to a query response channel.A global receiver is registered to all connections, in the present and future.
registerReceiver
Link copied to clipboard
static boolean registerReceiver(ServerLoginNetworkHandler networkHandler, Identifier channelName, ServerLoginNetworking.LoginQueryResponseHandler responseHandler)
Registers a handler to a query response channel.
unregisterGlobalReceiver
Link copied to clipboard
@Nullable()
static ServerLoginNetworking.LoginQueryResponseHandler unregisterGlobalReceiver(Identifier channelName)
Removes the handler of a query response channel.A global receiver is registered to all connections, in the present and future.
unregisterReceiver
Link copied to clipboard
@Nullable()
static ServerLoginNetworking.LoginQueryResponseHandler unregisterReceiver(ServerLoginNetworkHandler networkHandler, Identifier channelName)
Removes the handler of a query response channel.

Sources

jvm source
Link copied to clipboard