Enum Class EntityCategory

java.lang.Object
java.lang.Enum<EntityCategory>
net.minecraft.entity.EntityCategory
All Implemented Interfaces:
Serializable, Comparable<EntityCategory>, Constable

public enum EntityCategory extends Enum<EntityCategory>
Mappings:
Namespace Name
official afc
intermediary net/minecraft/class_872
named net/minecraft/entity/EntityCategory
  • Enum Constant Details

    • MONSTER

      public static final EntityCategory MONSTER
      Mappings:
      Namespace Name Mixin selector
      official a Lafc;a:Lafc;
      intermediary field_11919 Lnet/minecraft/class_872;field_11919:Lnet/minecraft/class_872;
      named MONSTER Lnet/minecraft/entity/EntityCategory;MONSTER:Lnet/minecraft/entity/EntityCategory;
    • PASSIVE

      public static final EntityCategory PASSIVE
      Mappings:
      Namespace Name Mixin selector
      official b Lafc;b:Lafc;
      intermediary field_11920 Lnet/minecraft/class_872;field_11920:Lnet/minecraft/class_872;
      named PASSIVE Lnet/minecraft/entity/EntityCategory;PASSIVE:Lnet/minecraft/entity/EntityCategory;
    • AMBIENT

      public static final EntityCategory AMBIENT
      Mappings:
      Namespace Name Mixin selector
      official c Lafc;c:Lafc;
      intermediary field_11921 Lnet/minecraft/class_872;field_11921:Lnet/minecraft/class_872;
      named AMBIENT Lnet/minecraft/entity/EntityCategory;AMBIENT:Lnet/minecraft/entity/EntityCategory;
    • AQUATIC

      public static final EntityCategory AQUATIC
      Mappings:
      Namespace Name Mixin selector
      official d Lafc;d:Lafc;
      intermediary field_11922 Lnet/minecraft/class_872;field_11922:Lnet/minecraft/class_872;
      named AQUATIC Lnet/minecraft/entity/EntityCategory;AQUATIC:Lnet/minecraft/entity/EntityCategory;
  • Field Details

    • clazz

      private final Class<? extends EntityCategoryProvider> clazz
      Mappings:
      Namespace Name Mixin selector
      official e Lafc;e:Ljava/lang/Class;
      intermediary field_3367 Lnet/minecraft/class_872;field_3367:Ljava/lang/Class;
      named clazz Lnet/minecraft/entity/EntityCategory;clazz:Ljava/lang/Class;
    • spawnCap

      private final int spawnCap
      Mappings:
      Namespace Name Mixin selector
      official f Lafc;f:I
      intermediary field_3368 Lnet/minecraft/class_872;field_3368:I
      named spawnCap Lnet/minecraft/entity/EntityCategory;spawnCap:I
    • hostile

      private final boolean hostile
      Mappings:
      Namespace Name Mixin selector
      official g Lafc;g:Z
      intermediary field_3370 Lnet/minecraft/class_872;field_3370:Z
      named hostile Lnet/minecraft/entity/EntityCategory;hostile:Z
    • breedable

      private final boolean breedable
      Mappings:
      Namespace Name Mixin selector
      official h Lafc;h:Z
      intermediary field_5346 Lnet/minecraft/class_872;field_5346:Z
      named breedable Lnet/minecraft/entity/EntityCategory;breedable:Z
  • Constructor Details

  • Method Details

    • values

      public static EntityCategory[] 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 EntityCategory 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
    • getCategoryClass

      public Class<? extends EntityCategoryProvider> getCategoryClass()
      Mappings:
      Namespace Name Mixin selector
      official a Lafc;a()Ljava/lang/Class;
      intermediary method_2675 Lnet/minecraft/class_872;method_2675()Ljava/lang/Class;
      named getCategoryClass Lnet/minecraft/entity/EntityCategory;getCategoryClass()Ljava/lang/Class;
    • getSpawnCap

      public int getSpawnCap()
      Mappings:
      Namespace Name Mixin selector
      official b Lafc;b()I
      intermediary method_2676 Lnet/minecraft/class_872;method_2676()I
      named getSpawnCap Lnet/minecraft/entity/EntityCategory;getSpawnCap()I
    • isHostile

      public boolean isHostile()
      Mappings:
      Namespace Name Mixin selector
      official c Lafc;c()Z
      intermediary method_2678 Lnet/minecraft/class_872;method_2678()Z
      named isHostile Lnet/minecraft/entity/EntityCategory;isHostile()Z
    • isBreedable

      public boolean isBreedable()
      Mappings:
      Namespace Name Mixin selector
      official d Lafc;d()Z
      intermediary method_4487 Lnet/minecraft/class_872;method_4487()Z
      named isBreedable Lnet/minecraft/entity/EntityCategory;isBreedable()Z