public class PacketPlayerJoinReject extends java.lang.Object implements Packet
Modifier and Type | Class and Description |
---|---|
static class |
PacketPlayerJoinReject.RejectReason
Enum of join reject reasons.
|
Modifier and Type | Field and Description |
---|---|
private int |
reason
They ID of the reject reason.
|
private static long |
serialVersionUID
Serial ID.
|
Constructor and Description |
---|
PacketPlayerJoinReject(PacketPlayerJoinReject.RejectReason reason)
Constructs a new join reject packet with the given reason.
|
Modifier and Type | Method and Description |
---|---|
PacketPlayerJoinReject.RejectReason |
getReason()
Gets the reason the player was not allowed to join.
|
PacketRegistry |
getRegisteryType()
The registry type of this packet.
|
private static final long serialVersionUID
private final int reason
public PacketPlayerJoinReject(PacketPlayerJoinReject.RejectReason reason)
reason
- The reason for rejection.public PacketPlayerJoinReject.RejectReason getReason()
public PacketRegistry getRegisteryType()
Packet
getRegisteryType
in interface Packet