unregisterReceiver

@Nullable()
static ServerPlayNetworking.PlayChannelHandler unregisterReceiver(ServerPlayNetworkHandler networkHandler, Identifier channelName)

Removes the handler of a 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