getSender

static PacketSender getSender(ServerPlayerEntity player)

Gets the packet sender which sends packets to the connected client.

Return

the packet sender

Parameters

player

the player

static PacketSender getSender(ServerPlayNetworkHandler handler)

Gets the packet sender which sends packets to the connected client.

Return

the packet sender

Parameters

handler

the network handler, representing the connection to the player/client