Enum Magic.SpellbookTab
- All Implemented Interfaces:
Serializable,Comparable<Magic.SpellbookTab>,java.lang.constant.Constable
- Enclosing class:
Magic
The magic tab as the client holds it.
OPEN means the tab is SELECTED, not that the
resizable side panel is shown: that cannot be read, and selecting a spell does not need it.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionselectedTab == TAB_MAGIC: never click the tab again (the client would toggle the panel).Another tab is selected; one TAB_SELECT opens the book.An overlay replaces the tab area, so the book is not drawn whatever tab is selected.The magic tab has no root (tabRoots[TAB_MAGIC] == -1): there is no book to open.Not readable on this server or right now. -
Method Summary
Modifier and TypeMethodDescriptionstatic Magic.SpellbookTabReturns the enum constant of this type with the specified name.static Magic.SpellbookTab[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OPEN
selectedTab == TAB_MAGIC: never click the tab again (the client would toggle the panel). -
OTHER_TAB
Another tab is selected; one TAB_SELECT opens the book. -
OVERLAY
An overlay replaces the tab area, so the book is not drawn whatever tab is selected. -
UNAVAILABLE
The magic tab has no root (tabRoots[TAB_MAGIC] == -1): there is no book to open. -
UNKNOWN
Not readable on this server or right now. Callers click the tab and wait.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-