Class RoomInfoPacket
java.lang.Object
com.xpdustry.claj.common.packets.RoomStatePacket
com.xpdustry.claj.common.packets.RoomInfoPacket
- All Implemented Interfaces:
Packet
-
Field Summary
FieldsModifier and TypeFieldDescriptionintbooleanintlongFields inherited from class RoomStatePacket
MAX_BUFF_SIZE, state -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Packet
handleClient, handleServer, r, w
-
Field Details
-
roomId
public long roomId -
isProtected
public boolean isProtected -
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:
readin interfacePacket- Overrides:
readin classRoomStatePacket
-
write
public void write(arc.util.io.ByteBufferOutput write) - Specified by:
writein interfacePacket- Overrides:
writein classRoomStatePacket
-
allow
public boolean allow(boolean isServer) - Specified by:
allowin interfacePacket- Overrides:
allowin classRoomStatePacket- Returns:
- whether this packet should be allowed or ignored, for the type of endpoint.
-