枚举 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.
另请参阅:
  • 枚举常量详细资料

    • 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 - 如果参数为空值