send To Server
abstract void sendToServer(Packet<? extends Object> packet, GenericFutureListener<? extends Future<? extends Object>> completionListener)
Content copied to clipboard
Send a packet to the server.
Parameters
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 sendToServer(Identifier id, PacketByteBuf buf, GenericFutureListener<? extends Future<? extends Object>> completionListener)
Content copied to clipboard
Send an identifier/buffer-based packet to the server.
Parameters
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 the server.
Parameters
packet
The packet to be sent.
Send an identifier/buffer-based packet to the server.
Parameters
id
The packet identifier.
buf
The packet byte buffer.