Package net.md_5.bungee.api.connection
Interface Connection.Unsafe
-
- Enclosing interface:
- Connection
public static interface Connection.Unsafe
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsendPacket(DefinedPacket packet)Send a packet to this connection.voidsendPacketQueued(DefinedPacket packet)Queue a packet to this connection.
-
-
-
Method Detail
-
sendPacket
void sendPacket(DefinedPacket packet)
Send a packet to this connection.- Parameters:
packet- the packet to send
-
sendPacketQueued
void sendPacketQueued(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.- Parameters:
packet- the packet to be queued- Throws:
UnsupportedOperationException- if used for a PendingConnection
-
-