public static enum ServerKickEvent.Cause extends Enum<ServerKickEvent.Cause>
Enum Constant and Description |
---|
EXCEPTION |
LOST_CONNECTION |
SERVER |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static ServerKickEvent.Cause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerKickEvent.Cause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerKickEvent.Cause SERVER
public static final ServerKickEvent.Cause LOST_CONNECTION
public static final ServerKickEvent.Cause EXCEPTION
public static final ServerKickEvent.Cause UNKNOWN
public static ServerKickEvent.Cause[] values()
for (ServerKickEvent.Cause c : ServerKickEvent.Cause.values()) System.out.println(c);
public static ServerKickEvent.Cause 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 © 2019–2022. All rights reserved.