Class RoomConfigPacket
java.lang.Object
com.xpdustry.claj.common.packets.RoomConfigPacket
- All Implemented Interfaces:
Packet
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether a password is needed to join the room.booleanWhether the room is visible in the explorer.intMaximum number of client allowed in the room.shortThe room password.booleanWhether the host allows or not the server to request his 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
-
isPublic
public boolean isPublicWhether the room is visible in the explorer. -
isProtected
public boolean isProtectedWhether a password is needed to join the room. This doens't means that the connection will be encrypted! -
password
public short passwordThe room password. It's a 4 digits pin code and should be-1if unset. -
requestState
public boolean requestStateWhether the host allows or not the server to request his state. -
maxClients
public int maxClientsMaximum 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
-
write
-
allow
-