枚举 SpawnCategory
- 所有已实现的接口:
Serializable
,Comparable<SpawnCategory>
,Constable
Represents groups of entities with shared spawn behaviors and mob caps.
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
枚举常量概要
枚举常量说明Entities related to Ambient, eg: Bat.Entities related to Animals, eg: Strider, Cow, Turtle, etc.All the Axolotl are represented by this Category.Entities not related to a mob, eg: Player, ArmorStand, Boat, etc.Entities related to Monsters, eg: Witch, Zombie, Creeper, etc.Entities related to Water Ambient, eg: Cod, PufferFish, Tropical Fish, Salmon, etc.Entities related to Water Animals, eg: Squid or Dolphin.Entities related to Water Underground, eg: Glow Squid. -
方法概要
修饰符和类型方法说明static SpawnCategory
返回带有指定名称的该类型的枚举常量。static SpawnCategory[]
values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
-
枚举常量详细资料
-
MONSTER
Entities related to Monsters, eg: Witch, Zombie, Creeper, etc. -
ANIMAL
Entities related to Animals, eg: Strider, Cow, Turtle, etc. -
WATER_ANIMAL
Entities related to Water Animals, eg: Squid or Dolphin. -
WATER_AMBIENT
Entities related to Water Ambient, eg: Cod, PufferFish, Tropical Fish, Salmon, etc. -
WATER_UNDERGROUND_CREATURE
Entities related to Water Underground, eg: Glow Squid. -
AMBIENT
Entities related to Ambient, eg: Bat. -
AXOLOTL
All the Axolotl are represented by this Category. -
MISC
Entities not related to a mob, eg: Player, ArmorStand, Boat, etc.
-
-
方法详细资料
-
values
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值
-