Class RoomJoinPacket

java.lang.Object
com.xpdustry.claj.common.packets.RoomLinkPacket
com.xpdustry.claj.common.packets.RoomJoinPacket
All Implemented Interfaces:
Packet
Direct Known Subclasses:
RoomJoinRequestPacket

public class RoomJoinPacket extends RoomLinkPacket
Should be sent by the actual client connection after connected successfully and checked request validity.
The packet will be manually serialized as, normally, no CLaJ serializer is defined in the actual client connection.
See Also:
  • Field Details

    • withPassword

      public boolean withPassword
    • password

      public short password
      Room pin password.
    • type

      public ClajType type
      CLaJ Implementation type. 16 bytes max.
  • Constructor Details

    • RoomJoinPacket

      public RoomJoinPacket()
  • Method Details

    • read

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

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

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