Enum Class Activity
- All Implemented Interfaces:
Serializable
,Comparable<Activity>
,Constable
,Keyed
Represents an Activity assignable to a Mob.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the Main Activity of the Mob.Represents the Activity while hiding.Represents the Idle Activity of the Mob.Represents the Playing Activity of the Mob.Represents the Activity right before a raid will happen.Represents the Activity during a raid.Represents the Sleeping/Resting Activity of the Mob.Represents the Working Activity of the Mob. -
Method Summary
Modifier and TypeMethodDescriptionFetches an Activity by its key.getKey()
Return the namespaced identifier for this object.static Activity
Returns the enum constant of this class with the specified name.static Activity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CORE
Represents the Main Activity of the Mob. -
IDLE
Represents the Idle Activity of the Mob. -
WORK
Represents the Working Activity of the Mob. -
PLAY
Represents the Playing Activity of the Mob. -
REST
Represents the Sleeping/Resting Activity of the Mob. -
HIDE
Represents the Activity while hiding. -
RAID
Represents the Activity during a raid. -
PRE_RAID
Represents the Activity right before a raid will happen.
-
-
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
-
getKey
Return the namespaced identifier for this object. -
getByKey
Fetches an Activity by its key.- Parameters:
key
- Key of the Activity- Returns:
- Activity with the given key, or null if no Activity with the given key exists.
-