Enum Class SpawnCategory

java.lang.Object
java.lang.Enum<SpawnCategory>
org.bukkit.entity.SpawnCategory
All Implemented Interfaces:
Serializable, Comparable<SpawnCategory>, Constable

public enum SpawnCategory extends Enum<SpawnCategory>
Represents groups of entities with shared spawn behaviors and mob caps.
See Also:
  • Enum Constant Details Link icon

    • MONSTER Link icon

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

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

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

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

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

      public static final SpawnCategory AMBIENT
      Entities related to Ambient, eg: Bat.
    • AXOLOTL Link icon

      public static final SpawnCategory AXOLOTL
      All the Axolotl are represented by this Category.
    • MISC Link icon

      public static final SpawnCategory MISC
      Entities not related to a mob, eg: Player, ArmorStand, Boat, etc.
  • Method Details Link icon

    • values Link icon

      public static SpawnCategory[] 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 Link icon

      public static SpawnCategory valueOf(String name)
      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 name
      NullPointerException - if the argument is null