Enum Class MobCategory
- 所有已实现的接口:
Serializable
,Comparable<MobCategory>
,Constable
,StringRepresentable
,IExtensibleEnum
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
从接口继承的嵌套类/接口 net.minecraft.util.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>
-
枚举常量概要
枚举常量 -
字段概要
字段修饰符和类型字段说明private static final Map<String,
MobCategory> static final com.mojang.serialization.Codec<MobCategory>
private final int
private final boolean
private final boolean
private final int
private final String
private final int
从接口继承的字段 net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
构造器概要
构造器限定符构造器说明private
MobCategory
(String pName, int pMax, boolean pIsFriendly, boolean pIsPersistent, int pDespawnDistance) -
方法概要
修饰符和类型方法说明static MobCategory
static MobCategory
create
(String name, String id, int maxNumberOfCreatureIn, boolean isPeacefulCreatureIn, boolean isAnimalIn, int despawnDistance) int
int
getName()
int
void
init()
已过时。boolean
boolean
static MobCategory
Returns 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.
-
枚举常量详细资料
-
MONSTER
-
CREATURE
-
AMBIENT
-
AXOLOTLS
-
UNDERGROUND_WATER_CREATURE
-
WATER_CREATURE
-
WATER_AMBIENT
-
MISC
-
-
字段详细资料
-
CODEC
-
BY_NAME
-
max
private final int max -
isFriendly
private final boolean isFriendly -
isPersistent
private final boolean isPersistent -
name
-
noDespawnDistance
private final int noDespawnDistance- 另请参阅:
-
despawnDistance
private final int despawnDistance
-
-
构造器详细资料
-
MobCategory
private MobCategory(String pName, int pMax, boolean pIsFriendly, boolean pIsPersistent, int pDespawnDistance)
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- 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.)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 如果参数为空值
-
getName
-
getSerializedName
- 指定者:
getSerializedName
在接口中StringRepresentable
-
getMaxInstancesPerChunk
public int getMaxInstancesPerChunk() -
isFriendly
public boolean isFriendly() -
isPersistent
public boolean isPersistent() -
create
public static MobCategory create(String name, String id, int maxNumberOfCreatureIn, boolean isPeacefulCreatureIn, boolean isAnimalIn, int despawnDistance) -
init
已过时。从接口复制的说明:IExtensibleEnum
Called by generated factory code to do any post-constructor setup required by the enum. Should not be called manually.- 指定者:
init
在接口中IExtensibleEnum
-
byName
-
getDespawnDistance
public int getDespawnDistance() -
getNoDespawnDistance
public int getNoDespawnDistance()
-