Package de.Keyle.MyPet.api.gui
Enum Class CloseReason
- All Implemented Interfaces:
Serializable,Comparable<CloseReason>,Constable
Why a
MenuInstance is closing. Passed to MenuHandler.onClose(de.Keyle.MyPet.api.gui.MenuInstance, de.Keyle.MyPet.api.gui.CloseReason).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionViewer disconnected.Another openMenu opened on top; this menu's snapshot is in the stack.ESC on a root or non-back-supporting menu.Code calledMenuInstance.close().Server shutdown or plugin disable.ESC popped this menu; the parent is being reopened. -
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_CLOSED
ESC on a root or non-back-supporting menu. Stack is cleared. -
NAVIGATED_AWAY
Another openMenu opened on top; this menu's snapshot is in the stack. -
POPPED_BACK
ESC popped this menu; the parent is being reopened. -
PLUGIN_CLOSED
Code calledMenuInstance.close(). -
DISCONNECT
Viewer disconnected. -
PLUGIN_DISABLE
Server shutdown or plugin disable.
-
-
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
-