registerReceiver

static boolean registerReceiver(ServerLoginNetworkHandler networkHandler, Identifier channelName, ServerLoginNetworking.LoginQueryResponseHandler responseHandler)

Registers a handler to a query response channel.

If a handler is already registered to the {@code channelName}, this method will return {@code false}, and no change will be made.Use unregisterReceiver to unregister the existing handler.

Return

false if a handler is already registered to the channel name

Parameters

networkHandler

the handler

channelName

the id of the channel

responseHandler

the handler

Sources

jvm source
Link copied to clipboard