Package forgottentowns.mod.api
Enum Class ColonyWork.Action
- All Implemented Interfaces:
Serializable,Comparable<ColonyWork.Action>,Constable
- Enclosing interface:
ColonyWork
Supported terrain and vegetation work commands.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExcavate an eligible exposed block.Collect a gatherable feature or material.Harvest a mature crop, feature or ground cover.Mine an eligible exposed block.Cut an eligible tree. -
Method Summary
Modifier and TypeMethodDescriptionstatic ColonyWork.ActionReturns the enum constant of this class with the specified name.static ColonyWork.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GATHERING
Collect a gatherable feature or material. -
MINING
Mine an eligible exposed block. -
DIGGING
Excavate an eligible exposed block. -
WOODCUTTING
Cut an eligible tree. -
HARVESTING
Harvest a mature crop, feature or ground cover.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-