Enum Class MobCategory

java.lang.Object
java.lang.Enum<MobCategory>
net.minecraft.world.entity.MobCategory
All Implemented Interfaces:
Serializable, Comparable<MobCategory>, Constable, StringRepresentable, net.neoforged.fml.common.asm.enumextension.IExtensibleEnum

public enum MobCategory extends Enum<MobCategory> implements StringRepresentable, net.neoforged.fml.common.asm.enumextension.IExtensibleEnum
  • 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

    • CODEC

      public static final com.mojang.serialization.Codec<MobCategory> CODEC
    • max

      private final int max
    • isFriendly

      private final boolean isFriendly
    • isPersistent

      private final boolean isPersistent
    • name

      private final String name
    • noDespawnDistance

      private final int noDespawnDistance
      See Also:
    • despawnDistance

      private final int despawnDistance
  • Constructor Details

    • MobCategory

      private MobCategory(String p_21597_, int p_21598_, boolean p_21599_, boolean p_21600_, int p_21601_)
  • 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
    • getName

      public String getName()
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface StringRepresentable
    • getMaxInstancesPerChunk

      public int getMaxInstancesPerChunk()
    • isFriendly

      public boolean isFriendly()
    • isPersistent

      public boolean isPersistent()
    • getDespawnDistance

      public int getDespawnDistance()
    • getNoDespawnDistance

      public int getNoDespawnDistance()
    • getExtensionInfo

      public static net.neoforged.fml.common.asm.enumextension.ExtensionInfo getExtensionInfo()