Enum Class GroundItemAction

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

public enum GroundItemAction extends Enum<GroundItemAction>
Ground-item menu options mapped to native action opcodes.
  • Enum Constant Details

    • TAKE

      public static final GroundItemAction TAKE
      Take the stack from the ground.
  • Method Details

    • values

      public static GroundItemAction[] 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 GroundItemAction 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:
      ground-item action opcode