Class RoomListPacket

java.lang.Object
com.xpdustry.claj.common.packets.RoomListPacket
All Implemented Interfaces:
Packet

public class RoomListPacket extends Object implements Packet
Can be a huge packet, should be sent with
invalid reference
StreamSender
instead.
  • Field Details

    • states

      public final arc.struct.LongMap<ByteBuffer> states
    • protectedRooms

      public final arc.struct.ObjectSet<Long> protectedRooms
  • Constructor Details

    • RoomListPacket

      public RoomListPacket()
  • Method Details

    • clear

      public RoomListPacket clear(boolean alsoShrink)
    • 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.