Enum EntityCategory

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

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

    • MONSTER

      public static final EntityCategory MONSTER
      Mappings:
      Namespace Name Mixin selector
      official a Lpt;a:Lpt;
      intermediary field_7514 Lnet/minecraft/class_1755;field_7514:Lnet/minecraft/class_1755;
      named MONSTER Lnet/minecraft/entity/EntityCategory;MONSTER:Lnet/minecraft/entity/EntityCategory;
    • PASSIVE

      public static final EntityCategory PASSIVE
      Mappings:
      Namespace Name Mixin selector
      official b Lpt;b:Lpt;
      intermediary field_7515 Lnet/minecraft/class_1755;field_7515:Lnet/minecraft/class_1755;
      named PASSIVE Lnet/minecraft/entity/EntityCategory;PASSIVE:Lnet/minecraft/entity/EntityCategory;
    • AMBIENT

      public static final EntityCategory AMBIENT
      Mappings:
      Namespace Name Mixin selector
      official c Lpt;c:Lpt;
      intermediary field_7516 Lnet/minecraft/class_1755;field_7516:Lnet/minecraft/class_1755;
      named AMBIENT Lnet/minecraft/entity/EntityCategory;AMBIENT:Lnet/minecraft/entity/EntityCategory;
    • AQUATIC

      public static final EntityCategory AQUATIC
      Mappings:
      Namespace Name Mixin selector
      official d Lpt;d:Lpt;
      intermediary field_7517 Lnet/minecraft/class_1755;field_7517:Lnet/minecraft/class_1755;
      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 Lpt;e:Ljava/lang/Class;
      intermediary field_7518 Lnet/minecraft/class_1755;field_7518: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 Lpt;f:I
      intermediary field_7519 Lnet/minecraft/class_1755;field_7519:I
      named spawnCap Lnet/minecraft/entity/EntityCategory;spawnCap:I
    • material

      private final Material material
      Mappings:
      Namespace Name Mixin selector
      official g Lpt;g:Larm;
      intermediary field_7520 Lnet/minecraft/class_1755;field_7520:Lnet/minecraft/class_591;
      named material Lnet/minecraft/entity/EntityCategory;material:Lnet/minecraft/block/Material;
    • hostile

      private final boolean hostile
      Mappings:
      Namespace Name Mixin selector
      official h Lpt;h:Z
      intermediary field_7521 Lnet/minecraft/class_1755;field_7521:Z
      named hostile Lnet/minecraft/entity/EntityCategory;hostile:Z
    • breedable

      private final boolean breedable
      Mappings:
      Namespace Name Mixin selector
      official i Lpt;i:Z
      intermediary field_7522 Lnet/minecraft/class_1755;field_7522:Z
      named breedable Lnet/minecraft/entity/EntityCategory;breedable:Z
  • Constructor Details

    • EntityCategory

      private EntityCategory​(Class<? extends EntityCategoryProvider> clazz, int cap, Material material, boolean hostile, boolean breedable)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lpt;<init>(Ljava/lang/String;ILjava/lang/Class;ILarm;ZZ)V
      intermediary <init> Lnet/minecraft/class_1755;<init>(Ljava/lang/String;ILjava/lang/Class;ILnet/minecraft/class_591;ZZ)V
      named <init> Lnet/minecraft/entity/EntityCategory;<init>(Ljava/lang/String;ILjava/lang/Class;ILnet/minecraft/block/Material;ZZ)V
  • Method Details

    • values

      public static EntityCategory[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EntityCategory valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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 Lpt;a()Ljava/lang/Class;
      intermediary method_7232 Lnet/minecraft/class_1755;method_7232()Ljava/lang/Class;
      named getCategoryClass Lnet/minecraft/entity/EntityCategory;getCategoryClass()Ljava/lang/Class;
    • getSpawnCap

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

      public boolean isHostile()
      Mappings:
      Namespace Name Mixin selector
      official d Lpt;d()Z
      intermediary method_7234 Lnet/minecraft/class_1755;method_7234()Z
      named isHostile Lnet/minecraft/entity/EntityCategory;isHostile()Z
    • isBreedable

      public boolean isBreedable()
      Mappings:
      Namespace Name Mixin selector
      official e Lpt;e()Z
      intermediary method_7235 Lnet/minecraft/class_1755;method_7235()Z
      named isBreedable Lnet/minecraft/entity/EntityCategory;isBreedable()Z