Package com.valhalla.sdk.api.methods
Enum Class NpcAction
- All Implemented Interfaces:
Serializable,Comparable<NpcAction>,Constable
Ordered NPC menu options mapped to the native client 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 ConstantDescriptionFifth action in the NPC's native menu definition.First action in the NPC's native menu definition.Fourth action in the NPC's native menu definition.Second action in the NPC's native menu definition.Third action in the NPC's native menu definition. -
Method Summary
-
Enum Constant Details
-
FIRST
First action in the NPC's native menu definition. -
SECOND
Second action in the NPC's native menu definition. -
THIRD
Third action in the NPC's native menu definition. -
FOURTH
Fourth action in the NPC's native menu definition. -
FIFTH
Fifth action in the NPC's native menu definition.
-
-
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
-
getOpcode
public int getOpcode()Returns the native menu opcode.- Returns:
- NPC action opcode
-