send To Player
abstract void sendToPlayer(PlayerEntity player, Packet<? extends Object> packet, GenericFutureListener<? extends Future<? extends Object>> completionListener)
Content copied to clipboard
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.
void sendToPlayer(PlayerEntity player, Identifier id, PacketByteBuf buf, GenericFutureListener<? extends Future<? extends Object>> completionListener)
Content copied to clipboard
Send an identifier/buffer-based packet to a given client.
Parameters
player
The given client.
id
The packet identifier.
buf
The packet byte buffer.
completionListener
Completion listener. Can be used to check forthe success or failure of sending a given packet, among others.
Send a packet to a given client.
Parameters
player
The given client.
packet
The packet to be sent.
Send an identifier/buffer-based packet to a given client.
Parameters
player
The given client.
id
The packet identifier.
buf
The packet byte buffer.