Package net.minecraft.entity
Enum EntityCategory
- All Implemented Interfaces:
Serializable,Comparable<EntityCategory>,java.lang.constant.Constable
public enum EntityCategory extends Enum<EntityCategory>
- Mappings:
Namespace Name official ptintermediary net/minecraft/class_1755named net/minecraft/entity/EntityCategory
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateEntityCategory(Class<? extends EntityCategoryProvider> clazz, int cap, Material material, boolean hostile, boolean breedable) -
Method Summary
Modifier and Type Method Description Class<? extends EntityCategoryProvider>getCategoryClass()intgetSpawnCap()booleanisBreedable()booleanisHostile()static EntityCategoryvalueOf(String name)Returns the enum constant of this type with the specified name.static EntityCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MONSTER
- Mappings:
Namespace Name Mixin selector official aLpt;a:Lpt;intermediary field_7514Lnet/minecraft/class_1755;field_7514:Lnet/minecraft/class_1755;named MONSTERLnet/minecraft/entity/EntityCategory;MONSTER:Lnet/minecraft/entity/EntityCategory;
-
PASSIVE
- Mappings:
Namespace Name Mixin selector official bLpt;b:Lpt;intermediary field_7515Lnet/minecraft/class_1755;field_7515:Lnet/minecraft/class_1755;named PASSIVELnet/minecraft/entity/EntityCategory;PASSIVE:Lnet/minecraft/entity/EntityCategory;
-
AMBIENT
- Mappings:
Namespace Name Mixin selector official cLpt;c:Lpt;intermediary field_7516Lnet/minecraft/class_1755;field_7516:Lnet/minecraft/class_1755;named AMBIENTLnet/minecraft/entity/EntityCategory;AMBIENT:Lnet/minecraft/entity/EntityCategory;
-
AQUATIC
- Mappings:
Namespace Name Mixin selector official dLpt;d:Lpt;intermediary field_7517Lnet/minecraft/class_1755;field_7517:Lnet/minecraft/class_1755;named AQUATICLnet/minecraft/entity/EntityCategory;AQUATIC:Lnet/minecraft/entity/EntityCategory;
-
-
Field Details
-
clazz
- Mappings:
Namespace Name Mixin selector official eLpt;e:Ljava/lang/Class;intermediary field_7518Lnet/minecraft/class_1755;field_7518:Ljava/lang/Class;named clazzLnet/minecraft/entity/EntityCategory;clazz:Ljava/lang/Class;
-
spawnCap
private final int spawnCap- Mappings:
Namespace Name Mixin selector official fLpt;f:Iintermediary field_7519Lnet/minecraft/class_1755;field_7519:Inamed spawnCapLnet/minecraft/entity/EntityCategory;spawnCap:I
-
material
- Mappings:
Namespace Name Mixin selector official gLpt;g:Larm;intermediary field_7520Lnet/minecraft/class_1755;field_7520:Lnet/minecraft/class_591;named materialLnet/minecraft/entity/EntityCategory;material:Lnet/minecraft/block/Material;
-
hostile
private final boolean hostile- Mappings:
Namespace Name Mixin selector official hLpt;h:Zintermediary field_7521Lnet/minecraft/class_1755;field_7521:Znamed hostileLnet/minecraft/entity/EntityCategory;hostile:Z
-
breedable
private final boolean breedable- Mappings:
Namespace Name Mixin selector official iLpt;i:Zintermediary field_7522Lnet/minecraft/class_1755;field_7522:Znamed breedableLnet/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)Vintermediary <init>Lnet/minecraft/class_1755;<init>(Ljava/lang/String;ILjava/lang/Class;ILnet/minecraft/class_591;ZZ)Vnamed <init>Lnet/minecraft/entity/EntityCategory;<init>(Ljava/lang/String;ILjava/lang/Class;ILnet/minecraft/block/Material;ZZ)V
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getCategoryClass
- Mappings:
Namespace Name Mixin selector official aLpt;a()Ljava/lang/Class;intermediary method_7232Lnet/minecraft/class_1755;method_7232()Ljava/lang/Class;named getCategoryClassLnet/minecraft/entity/EntityCategory;getCategoryClass()Ljava/lang/Class;
-
getSpawnCap
public int getSpawnCap()- Mappings:
Namespace Name Mixin selector official bLpt;b()Iintermediary method_7233Lnet/minecraft/class_1755;method_7233()Inamed getSpawnCapLnet/minecraft/entity/EntityCategory;getSpawnCap()I
-
isHostile
public boolean isHostile()- Mappings:
Namespace Name Mixin selector official dLpt;d()Zintermediary method_7234Lnet/minecraft/class_1755;method_7234()Znamed isHostileLnet/minecraft/entity/EntityCategory;isHostile()Z
-
isBreedable
public boolean isBreedable()- Mappings:
Namespace Name Mixin selector official eLpt;e()Zintermediary method_7235Lnet/minecraft/class_1755;method_7235()Znamed isBreedableLnet/minecraft/entity/EntityCategory;isBreedable()Z
-