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
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.
The packet will be manually serialized as, normally, no CLaJ serializer is defined in the actual client connection.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionshortRoom pin password.CLaJ Implementation type.booleanFields inherited from class RoomLinkPacket
roomId -
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
-
withPassword
public boolean withPassword -
password
public short passwordRoom pin password. -
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:
readin interfacePacket- Overrides:
readin classRoomLinkPacket
-
write
public void write(arc.util.io.ByteBufferOutput write) - Specified by:
writein interfacePacket- Overrides:
writein classRoomLinkPacket
-
allow
public boolean allow(boolean isServer) - Specified by:
allowin interfacePacket- Overrides:
allowin classRoomLinkPacket- Returns:
- whether this packet should be allowed or ignored, for the type of endpoint.
-