Class RoomLinkPacket

java.lang.Object
com.xpdustry.claj.common.packets.RoomLinkPacket
All Implemented Interfaces:
Packet
Direct Known Subclasses:
RoomInfoRequestPacket, RoomJoinAcceptedPacket, RoomJoinDeniedPacket, RoomJoinPacket

public class RoomLinkPacket extends Object implements Packet
  • Field Details

    • roomId

      public long roomId
      0 means no room.
  • Constructor Details

    • RoomLinkPacket

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