Class RoomStatePacket

java.lang.Object
com.xpdustry.claj.common.packets.RoomStatePacket
All Implemented Interfaces:
Packet
Direct Known Subclasses:
RoomInfoPacket

public class RoomStatePacket extends Object implements Packet
  • Field Details

    • MAX_BUFF_SIZE

      public static final int MAX_BUFF_SIZE
      Maximum buffer size allowed for a state. Anything exceeding this limit will be truncated.
      See Also:
    • state

      public ByteBuffer state
  • Constructor Details

    • RoomStatePacket

      public RoomStatePacket()
  • Method Details

    • read

      public void read(arc.util.io.ByteBufferInput read)
      Specified by:
      read in interface Packet
    • write

      public void write(arc.util.io.ByteBufferOutput write)
      Specified by:
      write in interface Packet
    • allow

      public boolean allow(boolean isServer)
      Specified by:
      allow in interface Packet
      Returns:
      whether this packet should be allowed or ignored, for the type of endpoint.