sendToPlayer

void sendToPlayer(PlayerEntity player, Packet<? extends Object> packet, GenericFutureListener<? extends Future<? extends Object>> completionListener)

Send a packet to a given client.

Parameters

player

The given client.

packet

The packet to be sent.

completionListener

Completion listener. Can be used to check forthe success or failure of sending a given packet, among others.

Sources

jvm source
Link copied to clipboard