All Known Subinterfaces:
RequestPacket<R>

public interface Packet
A packet transmitted over the connection of a client and a server.

Note to plugin implementations: This must have a no-args constructor.

  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    Read the data from the channel buffer into this packet.
    void
    Write the data from this packet to the channel buffer.
  • Method Details Link icon

    • read Link icon

      void read(ChannelBuf buf)
      Read the data from the channel buffer into this packet.
      Parameters:
      buf - The buffer to read from
    • write Link icon

      void write(ChannelBuf buf)
      Write the data from this packet to the channel buffer.
      Parameters:
      buf - The buffer to write to