Package net.minecraft.entity
Enum Class EntityCategory
- All Implemented Interfaces:
Serializable,Comparable<EntityCategory>,Constable
- Mappings:
Namespace Name official afcintermediary 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<? extends EntityCategoryProvider> class2, int int2, boolean bool, boolean bool2) -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends EntityCategoryProvider>intbooleanbooleanstatic 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 aLafc;a:Lafc;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 bLafc;b:Lafc;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 cLafc;c:Lafc;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 dLafc;d:Lafc;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 eLafc;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 fLafc;f:Iintermediary field_3368Lnet/minecraft/class_872;field_3368:Inamed spawnCapLnet/minecraft/entity/EntityCategory;spawnCap:I
-
hostile
private final boolean hostile- Mappings:
Namespace Name Mixin selector official gLafc;g: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 hLafc;h:Zintermediary field_5346Lnet/minecraft/class_872;field_5346:Znamed breedableLnet/minecraft/entity/EntityCategory;breedable:Z
-
-
Constructor Details
-
EntityCategory
private EntityCategory(Class<? extends EntityCategoryProvider> class2, int int2, boolean bool, boolean bool2)
-
-
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 aLafc;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 bLafc;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 cLafc;c()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 dLafc;d()Zintermediary method_4487Lnet/minecraft/class_872;method_4487()Znamed isBreedableLnet/minecraft/entity/EntityCategory;isBreedable()Z
-