Package net.minecraft.entity
Enum Class EntityClassification
- All Implemented Interfaces:
Serializable
,Comparable<EntityClassification>
,Constable
,IStringSerializable
,IExtensibleEnum
public enum EntityClassification
extends Enum<EntityClassification>
implements IStringSerializable, IExtensibleEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<String,
EntityClassification> static final com.mojang.serialization.Codec<EntityClassification>
private final int
private final boolean
private final boolean
private final int
private final String
private final int
-
Constructor Summary
ModifierConstructorDescriptionprivate
EntityClassification
(String p_i231492_3_, int p_i231492_4_, boolean p_i231492_5_, boolean p_i231492_6_, int p_i231492_7_) -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityClassification
static EntityClassification
create
(String name, String id, int maxNumberOfCreatureIn, boolean isPeacefulCreatureIn, boolean isAnimalIn, int despawnDistance) int
int
getName()
int
void
init()
Deprecated.boolean
boolean
static EntityClassification
Returns the enum constant of this class with the specified name.static EntityClassification[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MONSTER
-
CREATURE
-
AMBIENT
-
WATER_CREATURE
-
WATER_AMBIENT
-
MISC
-
-
Field Details
-
CODEC
-
BY_NAME
-
max
private final int max -
isFriendly
private final boolean isFriendly -
isPersistent
private final boolean isPersistent -
name
-
noDespawnDistance
private final int noDespawnDistance- See Also:
-
despawnDistance
private final int despawnDistance
-
-
Constructor Details
-
EntityClassification
private EntityClassification(String p_i231492_3_, int p_i231492_4_, boolean p_i231492_5_, boolean p_i231492_6_, int p_i231492_7_)
-
-
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
-
getName
-
getSerializedName
- Specified by:
getSerializedName
in interfaceIStringSerializable
-
byName
-
getMaxInstancesPerChunk
public int getMaxInstancesPerChunk() -
isFriendly
public boolean isFriendly() -
isPersistent
public boolean isPersistent() -
create
public static EntityClassification create(String name, String id, int maxNumberOfCreatureIn, boolean isPeacefulCreatureIn, boolean isAnimalIn, int despawnDistance) -
init
Deprecated.Description copied from interface:IExtensibleEnum
Called by generated factory code to do any post-constructor setup required by the enum. Should not be called manually.- Specified by:
init
in interfaceIExtensibleEnum
-
getDespawnDistance
public int getDespawnDistance() -
getNoDespawnDistance
public int getNoDespawnDistance()
-