Interface Connection.Unsafe

Enclosing interface:
Connection

public static interface Connection.Unsafe
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sendPacket(net.md_5.bungee.protocol.DefinedPacket packet)
    Send a packet to this connection.
    void
    sendPacketQueued(net.md_5.bungee.protocol.DefinedPacket packet)
    Queue a packet to this connection.
  • Method Details

    • sendPacket

      void sendPacket(net.md_5.bungee.protocol.DefinedPacket packet)
      Send a packet to this connection.
      Parameters:
      packet - the packet to send
    • sendPacketQueued

      void sendPacketQueued(net.md_5.bungee.protocol.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