Enum Class ObjectAction

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

public enum ObjectAction extends Enum<ObjectAction>
Ordered scene-object menu options mapped to native action opcodes.
  • Enum Constant Details

    • FIRST

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

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

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

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

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

    • values

      public static ObjectAction[] 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 ObjectAction 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:
      object action opcode