Enum DisconnectEvent.LoginStatus
- java.lang.Object
-
- java.lang.Enum<DisconnectEvent.LoginStatus>
-
- com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<DisconnectEvent.LoginStatus>
- Enclosing class:
- DisconnectEvent
public static enum DisconnectEvent.LoginStatus extends Enum<DisconnectEvent.LoginStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELLED_BY_PROXY
CANCELLED_BY_USER
CANCELLED_BY_USER_BEFORE_COMPLETE
CONFLICTING_LOGIN
PRE_SERVER_JOIN
SUCCESSFUL_LOGIN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DisconnectEvent.LoginStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static DisconnectEvent.LoginStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESSFUL_LOGIN
public static final DisconnectEvent.LoginStatus SUCCESSFUL_LOGIN
-
CONFLICTING_LOGIN
public static final DisconnectEvent.LoginStatus CONFLICTING_LOGIN
-
CANCELLED_BY_USER
public static final DisconnectEvent.LoginStatus CANCELLED_BY_USER
-
CANCELLED_BY_PROXY
public static final DisconnectEvent.LoginStatus CANCELLED_BY_PROXY
-
CANCELLED_BY_USER_BEFORE_COMPLETE
public static final DisconnectEvent.LoginStatus CANCELLED_BY_USER_BEFORE_COMPLETE
-
PRE_SERVER_JOIN
public static final DisconnectEvent.LoginStatus PRE_SERVER_JOIN
-
-
Method Detail
-
values
public static DisconnectEvent.LoginStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DisconnectEvent.LoginStatus c : DisconnectEvent.LoginStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DisconnectEvent.LoginStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-