unregisterGlobalReceiver

@Nullable()
static ServerPlayNetworking.PlayChannelHandler unregisterGlobalReceiver(Identifier channelName)

Removes the handler of a channel.A global receiver is registered to all connections, in the present and future.

The {@code channel} 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

See also

net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking

ServerPlayNetworking#unregisterReceiver(ServerPlayNetworkHandler, Identifier)

Parameters

channelName

the id of the channel

Sources

jvm source
Link copied to clipboard