Enum Class MobCategory

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

@NullMarked @AsOf("2.3.0") public enum MobCategory extends Enum<MobCategory> implements WrappedEnumerator<MobCategory>
Represents the category of a mob in Minecraft.
Since:
2.3.0
  • Enum Constant Details

    • MONSTER

      public static final MobCategory MONSTER
    • CREATURE

      public static final MobCategory CREATURE
    • AMBIENT

      public static final MobCategory AMBIENT
    • AXOLOTLS

      public static final MobCategory AXOLOTLS
    • UNDERGROUND_WATER_CREATURE

      public static final MobCategory UNDERGROUND_WATER_CREATURE
    • WATER_CREATURE

      public static final MobCategory WATER_CREATURE
    • WATER_AMBIENT

      public static final MobCategory WATER_AMBIENT
    • MISC

      public static final MobCategory MISC
  • Field Details

  • Method Details

    • values

      public static MobCategory[] 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 MobCategory 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("2.3.0") public String getKey()
      The vanilla key for this mob category (e.g. "monster", "creature", "ambient").
      Returns:
      The vanilla key for this enum value.
      Since:
      2.3.0
    • translator

      @AsOf("2.3.0") public KeyedEnumTranslator<MobCategory> translator()
      The translator for this enum.
      Specified by:
      translator in interface WrappedEnumerator<MobCategory>
      Returns:
      The translator for this enum.
      Since:
      2.3.0