unregisterReceiver

@Nullable()
static ServerLoginNetworking.LoginQueryResponseHandler unregisterReceiver(ServerLoginNetworkHandler networkHandler, Identifier channelName)

Removes the handler of a query response channel.

The {@code channelName} is guaranteed not to have a handler after this call.

Return

the previous handler, or {@code null} if no handler was bound to the channel name

Parameters

channelName

the id of the channel

Sources

jvm source
Link copied to clipboard