Enum Class CloseReason
- All Implemented Interfaces:
Serializable,Comparable<CloseReason>,Constable
Why a session closed; exposed through
CloseContext.reason().-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionViewService.closeorViewContext.close()was called.The player disconnected.onFirstRenderthrew and the open was aborted before the container was shown.The player closed the container themselves (e.g.The owning plugin is being disabled.Another view was opened for the same player, replacing this session. -
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
-
PLAYER
The player closed the container themselves (e.g. pressed Esc). -
API
ViewService.closeorViewContext.close()was called. -
REPLACED
Another view was opened for the same player, replacing this session. -
DISCONNECT
The player disconnected. -
PLUGIN_DISABLE
The owning plugin is being disabled. -
OPEN_FAILED
onFirstRenderthrew and the open was aborted before the container was shown.
-
-
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
-