Enum Class Activity

java.lang.Object
java.lang.Enum<Activity>
dev.wyck.wrapper.environment.Activity
All Implemented Interfaces:
WrappedEnumerator<Activity>, Serializable, Comparable<Activity>, Constable

@NullMarked @AsOf("1.1.0") public enum Activity extends Enum<Activity> implements WrappedEnumerator<Activity>
This enum represents the various activities that entities in Minecraft can perform. Each enum value carries a vanilla key, retrievable via getKey(), which the impl module translates to the underlying NMS Activity value.
Since:
1.1.0
  • Enum Constant Details

    • CORE

      public static final Activity CORE
    • IDLE

      public static final Activity IDLE
    • WORK

      public static final Activity WORK
    • PLAY

      public static final Activity PLAY
    • REST

      public static final Activity REST
    • MEET

      public static final Activity MEET
    • PANIC

      public static final Activity PANIC
    • RAID

      public static final Activity RAID
    • PRE_RAID

      public static final Activity PRE_RAID
    • HIDE

      public static final Activity HIDE
    • FIGHT

      public static final Activity FIGHT
    • CELEBRATE

      public static final Activity CELEBRATE
    • ADMIRE_ITEM

      public static final Activity ADMIRE_ITEM
    • AVOID

      public static final Activity AVOID
    • RIDE

      public static final Activity RIDE
    • PLAY_DEAD

      public static final Activity PLAY_DEAD
    • LONG_JUMP

      public static final Activity LONG_JUMP
    • RAM

      public static final Activity RAM
    • TONGUE

      public static final Activity TONGUE
    • SWIM

      public static final Activity SWIM
    • LAY_SPAWN

      public static final Activity LAY_SPAWN
    • SNIFF

      public static final Activity SNIFF
    • INVESTIGATE

      public static final Activity INVESTIGATE
    • ROAR

      public static final Activity ROAR
    • EMERGE

      public static final Activity EMERGE
    • DIG

      public static final Activity DIG
  • Field Details

  • 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

      @AsOf("1.1.0") public String getKey()
      Returns the vanilla key for this activity (e.g. "core", "idle", "play_dead"). The impl module uses this key to resolve the underlying Minecraft Activity value.
      Returns:
      The vanilla key for this enum value.
    • translator

      public KeyedEnumTranslator<Activity> translator()
      Specified by:
      translator in interface WrappedEnumerator<Activity>