Enum Class ColonyWork.Action

java.lang.Object
java.lang.Enum<ColonyWork.Action>
forgottentowns.mod.api.ColonyWork.Action
All Implemented Interfaces:
Serializable, Comparable<ColonyWork.Action>, Constable
Enclosing interface:
ColonyWork

public static enum ColonyWork.Action extends Enum<ColonyWork.Action>
Supported terrain and vegetation work commands.
  • Enum Constant Details

    • GATHERING

      public static final ColonyWork.Action GATHERING
      Collect a gatherable feature or material.
    • MINING

      public static final ColonyWork.Action MINING
      Mine an eligible exposed block.
    • DIGGING

      public static final ColonyWork.Action DIGGING
      Excavate an eligible exposed block.
    • WOODCUTTING

      public static final ColonyWork.Action WOODCUTTING
      Cut an eligible tree.
    • HARVESTING

      public static final ColonyWork.Action HARVESTING
      Harvest a mature crop, feature or ground cover.
  • Method Details

    • values

      public static ColonyWork.Action[] 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 ColonyWork.Action 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