public enum DisconnectReason extends Enum<DisconnectReason>
| Enum Constant and Description |
|---|
BANNED
Client is banned
|
KILLED_BY_CLIENT
Connection killed by client
|
KILLED_BY_SERVER
Connection killed by server
|
UNKNOWN
Unknown disconnect reason
|
| Modifier and Type | Method and Description |
|---|---|
static DisconnectReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DisconnectReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DisconnectReason BANNED
public static final DisconnectReason KILLED_BY_SERVER
public static final DisconnectReason KILLED_BY_CLIENT
public static final DisconnectReason UNKNOWN
public static DisconnectReason[] values()
for (DisconnectReason c : DisconnectReason.values()) System.out.println(c);
public static DisconnectReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.