public static enum PacketPlayerJoinReject.RejectReason extends java.lang.Enum<PacketPlayerJoinReject.RejectReason>
Enum Constant and Description |
---|
FULL
The game was already full.
|
UNKNOWN
The exact reason is not known.
|
VERSION_MISMATCH
The server version does not match the client version.
|
Modifier and Type | Field and Description |
---|---|
private int |
id
Numeric ID of this reason.
|
private java.lang.String |
msg
The help text for this reason.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Gets the help text message for this reject reason.
|
java.lang.String |
toString() |
static PacketPlayerJoinReject.RejectReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PacketPlayerJoinReject.RejectReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PacketPlayerJoinReject.RejectReason UNKNOWN
public static final PacketPlayerJoinReject.RejectReason FULL
public static final PacketPlayerJoinReject.RejectReason VERSION_MISMATCH
private final int id
private final java.lang.String msg
public static PacketPlayerJoinReject.RejectReason[] values()
for (PacketPlayerJoinReject.RejectReason c : PacketPlayerJoinReject.RejectReason.values()) System.out.println(c);
public static PacketPlayerJoinReject.RejectReason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getMessage()
public java.lang.String toString()
toString
in class java.lang.Enum<PacketPlayerJoinReject.RejectReason>