Class RoomInfoPacket

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

public class RoomInfoPacket extends RoomStatePacket
  • Field Details

    • roomId

      public long roomId
    • isProtected

      public boolean isProtected
    • type

      public ClajType type
    • clients

      public int clients
    • maxClients

      public int maxClients
  • Constructor Details

    • RoomInfoPacket

      public RoomInfoPacket()
  • Method Details

    • read

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

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

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