Package net.minecraft.world.entity
Enum Class MobCategory
- All Implemented Interfaces:
- Serializable,- Comparable<MobCategory>,- Constable,- StringRepresentable,- IExtensibleEnum
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentableStringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescription
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Map<String, MobCategory> static final com.mojang.serialization.Codec<MobCategory> private final intprivate final booleanprivate final booleanprivate final intprivate final Stringprivate final intFields inherited from interface net.minecraft.util.StringRepresentablePRE_BUILT_MAP_THRESHOLD
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateMobCategory(String p_21597_, int p_21598_, boolean p_21599_, boolean p_21600_, int p_21601_) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic MobCategorystatic MobCategorycreate(String name, String id, int maxNumberOfCreatureIn, boolean isPeacefulCreatureIn, boolean isAnimalIn, int despawnDistance) intintgetName()intvoidinit()Deprecated.booleanbooleanstatic MobCategoryReturns the enum constant of this class with the specified name.static MobCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
MONSTER
- 
CREATURE
- 
AMBIENT
- 
AXOLOTLS
- 
UNDERGROUND_WATER_CREATURE
- 
WATER_CREATURE
- 
WATER_AMBIENT
- 
MISC
 
- 
- 
Field Details- 
CODEC
- 
BY_NAME
- 
maxprivate final int max
- 
isFriendlyprivate final boolean isFriendly
- 
isPersistentprivate final boolean isPersistent
- 
name
- 
noDespawnDistanceprivate final int noDespawnDistance- See Also:
 
- 
despawnDistanceprivate final int despawnDistance
 
- 
- 
Constructor Details- 
MobCategoryprivate MobCategory(String p_21597_, int p_21598_, boolean p_21599_, boolean p_21600_, int p_21601_) 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
getName
- 
getSerializedName- Specified by:
- getSerializedNamein interface- StringRepresentable
 
- 
getMaxInstancesPerChunkpublic int getMaxInstancesPerChunk()
- 
isFriendlypublic boolean isFriendly()
- 
isPersistentpublic boolean isPersistent()
- 
createpublic static MobCategory create(String name, String id, int maxNumberOfCreatureIn, boolean isPeacefulCreatureIn, boolean isAnimalIn, int despawnDistance) 
- 
initDeprecated.Description copied from interface:IExtensibleEnumCalled by generated factory code to do any post-constructor setup required by the enum. Should not be called manually.- Specified by:
- initin interface- IExtensibleEnum
 
- 
byName
- 
getDespawnDistancepublic int getDespawnDistance()
- 
getNoDespawnDistancepublic int getNoDespawnDistance()
 
-