Enum Class Activity

java.lang.Object
java.lang.Enum<Activity>
me.gamercoder215.mobchip.ai.schedule.Activity
All Implemented Interfaces:
Serializable, Comparable<Activity>, Constable, Keyed

public enum Activity extends Enum<Activity> implements Keyed
Represents an Activity assignable to a Mob.
  • Enum Constant Details

    • CORE

      public static final Activity CORE
      Represents the Main Activity of the Mob.
    • IDLE

      public static final Activity IDLE
      Represents the Idle Activity of the Mob.
    • WORK

      public static final Activity WORK
      Represents the Working Activity of the Mob.
    • PLAY

      public static final Activity PLAY
      Represents the Playing Activity of the Mob.
    • REST

      public static final Activity REST
      Represents the Sleeping/Resting Activity of the Mob.
    • HIDE

      public static final Activity HIDE
      Represents the Activity while hiding.
    • RAID

      public static final Activity RAID
      Represents the Activity during a raid.
    • PRE_RAID

      public static final Activity PRE_RAID
      Represents the Activity right before a raid will happen.
  • Method Details

    • values

      public static Activity[] 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 Activity 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
    • getKey

      public NamespacedKey getKey()
      Return the namespaced identifier for this object.
      Specified by:
      getKey in interface Keyed
      Returns:
      this object's key
    • 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.