Enum Class NpcAction

java.lang.Object
java.lang.Enum<NpcAction>
com.valhalla.sdk.api.methods.NpcAction
All Implemented Interfaces:
Serializable, Comparable<NpcAction>, Constable

public enum NpcAction extends Enum<NpcAction>
Ordered NPC menu options mapped to the native client action opcodes.
  • Enum Constant Details

    • FIRST

      public static final NpcAction FIRST
      First action in the NPC's native menu definition.
    • SECOND

      public static final NpcAction SECOND
      Second action in the NPC's native menu definition.
    • THIRD

      public static final NpcAction THIRD
      Third action in the NPC's native menu definition.
    • FOURTH

      public static final NpcAction FOURTH
      Fourth action in the NPC's native menu definition.
    • FIFTH

      public static final NpcAction FIFTH
      Fifth action in the NPC's native menu definition.
  • Method Details

    • values

      public static NpcAction[] 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

      public static NpcAction valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getOpcode

      public int getOpcode()
      Returns the native menu opcode.
      Returns:
      NPC action opcode