Package net.minecraft.entity
Enum Class EntityCategory
- All Implemented Interfaces:
Serializable,Comparable<EntityCategory>,Constable
- Mappings:
Namespace Name official xpintermediary net/minecraft/class_872named 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
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEntityCategory(Class clazz, int cap, Material material, boolean hostile, boolean breedable) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanstatic EntityCategoryReturns the enum constant of this class with the specified name.static EntityCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MONSTER
- Mappings:
Namespace Name Mixin selector official aLxp;a:Lxp;intermediary field_11919Lnet/minecraft/class_872;field_11919:Lnet/minecraft/class_872;named MONSTERLnet/minecraft/entity/EntityCategory;MONSTER:Lnet/minecraft/entity/EntityCategory;
-
PASSIVE
- Mappings:
Namespace Name Mixin selector official bLxp;b:Lxp;intermediary field_11920Lnet/minecraft/class_872;field_11920:Lnet/minecraft/class_872;named PASSIVELnet/minecraft/entity/EntityCategory;PASSIVE:Lnet/minecraft/entity/EntityCategory;
-
AMBIENT
- Mappings:
Namespace Name Mixin selector official cLxp;c:Lxp;intermediary field_11921Lnet/minecraft/class_872;field_11921:Lnet/minecraft/class_872;named AMBIENTLnet/minecraft/entity/EntityCategory;AMBIENT:Lnet/minecraft/entity/EntityCategory;
-
AQUATIC
- Mappings:
Namespace Name Mixin selector official dLxp;d:Lxp;intermediary field_11922Lnet/minecraft/class_872;field_11922:Lnet/minecraft/class_872;named AQUATICLnet/minecraft/entity/EntityCategory;AQUATIC:Lnet/minecraft/entity/EntityCategory;
-
-
Field Details
-
clazz
- Mappings:
Namespace Name Mixin selector official eLxp;e:Ljava/lang/Class;intermediary field_3367Lnet/minecraft/class_872;field_3367:Ljava/lang/Class;named clazzLnet/minecraft/entity/EntityCategory;clazz:Ljava/lang/Class;
-
spawnCap
private final int spawnCap- Mappings:
Namespace Name Mixin selector official fLxp;f:Iintermediary field_3368Lnet/minecraft/class_872;field_3368:Inamed spawnCapLnet/minecraft/entity/EntityCategory;spawnCap:I
-
material
- Mappings:
Namespace Name Mixin selector official gLxp;g:Lbof;intermediary field_3369Lnet/minecraft/class_872;field_3369:Lnet/minecraft/class_63;named materialLnet/minecraft/entity/EntityCategory;material:Lnet/minecraft/block/Material;
-
hostile
private final boolean hostile- Mappings:
Namespace Name Mixin selector official hLxp;h:Zintermediary field_3370Lnet/minecraft/class_872;field_3370:Znamed hostileLnet/minecraft/entity/EntityCategory;hostile:Z
-
breedable
private final boolean breedable- Mappings:
Namespace Name Mixin selector official iLxp;i:Zintermediary field_5346Lnet/minecraft/class_872;field_5346:Znamed breedableLnet/minecraft/entity/EntityCategory;breedable:Z
-
-
Constructor Details
-
EntityCategory
- Mappings:
Namespace Name Mixin selector official <init>Lxp;<init>(Ljava/lang/String;ILjava/lang/Class;ILbof;ZZ)Vintermediary <init>Lnet/minecraft/class_872;<init>(Ljava/lang/String;ILjava/lang/Class;ILnet/minecraft/class_63;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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
getCategoryClass
- Mappings:
Namespace Name Mixin selector official aLxp;a()Ljava/lang/Class;intermediary method_2675Lnet/minecraft/class_872;method_2675()Ljava/lang/Class;named getCategoryClassLnet/minecraft/entity/EntityCategory;getCategoryClass()Ljava/lang/Class;
-
getSpawnCap
public int getSpawnCap()- Mappings:
Namespace Name Mixin selector official bLxp;b()Iintermediary method_2676Lnet/minecraft/class_872;method_2676()Inamed getSpawnCapLnet/minecraft/entity/EntityCategory;getSpawnCap()I
-
isHostile
public boolean isHostile()- Mappings:
Namespace Name Mixin selector official dLxp;d()Zintermediary method_2678Lnet/minecraft/class_872;method_2678()Znamed isHostileLnet/minecraft/entity/EntityCategory;isHostile()Z
-
isBreedable
public boolean isBreedable()- Mappings:
Namespace Name Mixin selector official eLxp;e()Zintermediary method_4487Lnet/minecraft/class_872;method_4487()Znamed isBreedableLnet/minecraft/entity/EntityCategory;isBreedable()Z
-