Enum Class CloseReason
- All Implemented Interfaces:
Serializable, Comparable<CloseReason>, Constable
Why a
View was closed.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe player closed the window themselves (e.g. pressed Esc).The player disconnected from the proxy.A backend server opened or closed a window, taking over the player's screen.A plugin closed the view viaVGuiService.close(Player).The proxy is shutting down.The view was replaced by another proxy view opening for the same player. -
Method Summary
Modifier and TypeMethodDescriptionstatic CloseReasonReturns the enum constant of this class with the specified name.static CloseReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLIENT
The player closed the window themselves (e.g. pressed Esc). -
SERVER
A plugin closed the view viaVGuiService.close(Player). -
SWITCHED
The view was replaced by another proxy view opening for the same player. -
OVERRIDDEN
A backend server opened or closed a window, taking over the player's screen. -
DISCONNECT
The player disconnected from the proxy. -
SHUTDOWN
The proxy is shutting down.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-