#3797: Expose sendPacketQueued to unsafe interface

This commit is contained in:
Outfluencer
2025-03-08 16:56:20 +11:00
committed by md_5
parent 47f8c29a7c
commit 9476ffccdb
6 changed files with 47 additions and 2 deletions

View File

@@ -84,5 +84,15 @@ public interface Connection
* @param packet the packet to send
*/
void sendPacket(DefinedPacket packet);
/**
* Queue a packet to this connection.
* If the packet is not registered for the connections current encoder protocol, it will be queued until it is,
* otherwise it will be sent immediately.
*
* @param packet the packet to be queued
* @throws UnsupportedOperationException if used for a PendingConnection
*/
void sendPacketQueued(DefinedPacket packet);
}
}