Package dev.twilite.game.menu
Enum Class ActionType
- All Implemented Interfaces:
Serializable,Comparable<ActionType>,Constable
Game minimenu action opcodes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ActionType> byOpcode(int opcode) Resolves an action type from a raw opcode.intopcode()Returns the raw opcode passed todoAction.static ActionTypeReturns the enum constant of this class with the specified name.static ActionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
OPLOCU
-
OPLOCT
-
OPLOC1
-
OPLOC2
-
OPLOC3
-
OPLOC4
-
OPLOC5
-
OPLOC6
-
OPNPCU
-
OPNPCT
-
OPNPC1
-
OPNPC2
-
OPNPC3
-
OPNPC4
-
OPNPC5
-
OPNPC6
-
OPPLAYERU
-
OPPLAYERT
-
OPPLAYER1
-
OPPLAYER2
-
OPPLAYER3
-
OPPLAYER4
-
OPPLAYER5
-
OPPLAYER6
-
OPPLAYER7
-
OPPLAYER8
-
OPOBJU
-
OPOBJT
-
OPOBJ1
-
OPOBJ2
-
OPOBJ3
-
OPOBJ4
-
OPOBJ5
-
OPOBJ6
-
RESUME_PAUSEBUTTON
-
IF_BUTTONU
-
IF_BUTTONT
-
IF_BUTTONX
-
IF_BUTTONX2
-
SET_HEADING
-
OPWORLDENTITYU
-
OPWORLDENTITYT
-
OPWORLDENTITY1
-
OPWORLDENTITY2
-
OPWORLDENTITY3
-
OPWORLDENTITY4
-
OPWORLDENTITY5
-
OPWORLDENTITY6
-
-
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
-
byOpcode
Resolves an action type from a raw opcode.Opcodes with the game's high-priority
+2000modifier are normalized first. -
opcode
public int opcode()Returns the raw opcode passed todoAction.
-