Class RoomConfigPacket

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

public class RoomConfigPacket extends Object implements Packet
  • Field Details

    • isPublic

      public boolean isPublic
      Whether the room is visible in the explorer.
    • isProtected

      public boolean isProtected
      Whether a password is needed to join the room. This doens't means that the connection will be encrypted!
    • password

      public short password
      The room password. It's a 4 digits pin code and should be -1 if unset.
    • requestState

      public boolean requestState
      Whether the host allows or not the server to request his state.
    • maxClients

      public int maxClients
      Maximum number of client allowed in the room. Cannot be higher that the server limit. 0 if disabled.
  • Constructor Details

    • RoomConfigPacket

      public RoomConfigPacket()
  • 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.