can Send
static boolean canSend(ServerPlayerEntity player, Identifier channelName)
Content copied to clipboard
Checks if the connected client declared the ability to receive a packet on a specified channel name.
Return
True if the connected client has declared the ability to receive a packet on the specified channel
Parameters
player
the player
channelName
the channel name
static boolean canSend(ServerPlayNetworkHandler handler, Identifier channelName)
Content copied to clipboard
Checks if the connected client declared the ability to receive a packet on a specified channel name.
Return
True if the connected client has declared the ability to receive a packet on the specified channel
Parameters
handler
the network handler
channelName
the channel name