程序包 org.bukkit.entity

# 枚举 SpawnCategory

java.lang.Object
java.lang.Enum<SpawnCategory>
org.bukkit.entity.SpawnCategory

所有已实现的接口:
  `Serializable`, `Comparable<SpawnCategory>`, `Constable`

public enum SpawnCategory extends Enum<SpawnCategory>
Represents groups of entities with shared spawn behaviors and mob caps.

另请参阅:
  - Minecraft Wiki

- ## 嵌套类概要

  ## 从类继承的嵌套类/接口 java.lang.Enum

  `Enum.EnumDesc<E extends Enum<E>>`

- ## 枚举常量概要

  枚举常量
  枚举常量
  说明
  `AMBIENT`
  Entities related to Ambient, eg: Bat.
  `ANIMAL`
  Entities related to Animals, eg: Strider, Cow, Turtle, etc.
  `AXOLOTL`
  All the Axolotl are represented by this Category.
  `MISC`
  Entities not related to a mob, eg: Player, ArmorStand, Boat, etc.
  `MONSTER`
  Entities related to Monsters, eg: Witch, Zombie, Creeper, etc.
  `WATER_AMBIENT`
  Entities related to Water Ambient, eg: Cod, PufferFish, Tropical Fish, Salmon, etc.
  `WATER_ANIMAL`
  Entities related to Water Animals, eg: Squid or Dolphin.
  `WATER_UNDERGROUND_CREATURE`
  Entities related to Water Underground, eg: Glow Squid.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `static SpawnCategory`
  `valueOf(String name)`
  返回带有指定名称的该类型的枚举常量。
  `static SpawnCategory[]`
  `values()`
  按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。

  ### 从类继承的方法 java.lang.Enum

  `clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

  ### 从类继承的方法 java.lang.Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## 枚举常量详细资料

  - ### MONSTER

    public static final SpawnCategory MONSTER
    Entities related to Monsters, eg: Witch, Zombie, Creeper, etc.

  - ### ANIMAL

    public static final SpawnCategory ANIMAL
    Entities related to Animals, eg: Strider, Cow, Turtle, etc.

  - ### WATER_ANIMAL

    public static final SpawnCategory WATER_ANIMAL
    Entities related to Water Animals, eg: Squid or Dolphin.

  - ### WATER_AMBIENT

    public static final SpawnCategory WATER_AMBIENT
    Entities related to Water Ambient, eg: Cod, PufferFish, Tropical Fish, Salmon, etc.

  - ### WATER_UNDERGROUND_CREATURE

    public static final SpawnCategory WATER_UNDERGROUND_CREATURE
    Entities related to Water Underground, eg: Glow Squid.

  - ### AMBIENT

    public static final SpawnCategory AMBIENT
    Entities related to Ambient, eg: Bat.

  - ### AXOLOTL

    public static final SpawnCategory AXOLOTL
    All the Axolotl are represented by this Category.

  - ### MISC

    public static final SpawnCategory MISC
    Entities not related to a mob, eg: Player, ArmorStand, Boat, etc.

- ## 方法详细资料

  - ### values

    public static SpawnCategory[] values()
    按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
    返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组

  - ### valueOf

    public static SpawnCategory valueOf(String name)
    返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
    参数:
      `name` - 要返回的枚举常量的名称。
    返回:
      返回带有指定名称的枚举常量
    抛出:
      `IllegalArgumentException` - 如果该枚举类型没有带有指定名称的常量
      `NullPointerException` - 如果参数为空值