Enum Class TurtleVerb

java.lang.Object
java.lang.Enum<TurtleVerb>
dan200.computercraft.api.turtle.TurtleVerb
All Implemented Interfaces:
Serializable, Comparable<TurtleVerb>, Constable

public enum TurtleVerb extends Enum<TurtleVerb>
An enum representing the different actions that an ITurtleUpgrade of type Tool may be called on to perform by a turtle.
See Also:
  • Enum Constant Details

    • DIG

      public static final TurtleVerb DIG
      The turtle called turtle.dig(), turtle.digUp() or turtle.digDown().
    • ATTACK

      public static final TurtleVerb ATTACK
      The turtle called turtle.attack(), turtle.attackUp() or turtle.attackDown().
  • Method Details

    • values

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