Enum CreatureSpawnEvent.SpawnReason

java.lang.Object
java.lang.Enum<CreatureSpawnEvent.SpawnReason>
org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CreatureSpawnEvent.SpawnReason>, java.lang.constant.Constable
Enclosing class:
CreatureSpawnEvent

public static enum CreatureSpawnEvent.SpawnReason
extends java.lang.Enum<CreatureSpawnEvent.SpawnReason>
An enum to specify the type of spawning
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    BED
    Deprecated.
    No longer used
    BREEDING
    When an animal breeds to create a child
    BUILD_IRONGOLEM
    When an iron golem is spawned by being built
    BUILD_SNOWMAN
    When a snowman is spawned by being built
    BUILD_WITHER
    When a wither boss is spawned by being built
    CHUNK_GEN
    When a creature spawns due to chunk generation
    CURED
    When a villager is cured from infection
    CUSTOM
    When a creature is spawned by plugins
    DEFAULT
    When an entity is missing a SpawnReason
    DISPENSE_EGG
    When a creature is spawned by a dispenser dispensing an egg
    EGG
    When a creature spawns from an egg
    INFECTION
    When a zombie infects a villager
    JOCKEY
    When an entity spawns as a jockey of another entity (mostly spider jockeys)
    LIGHTNING
    When a creature spawns because of a lightning strike
    MOUNT
    When an entity spawns as a mount of another entity (mostly chicken jockeys)
    NATURAL
    When something spawns from natural means
    NETHER_PORTAL
    When a creature is spawned by nether portal
    OCELOT_BABY
    When an ocelot has a baby spawned along with them
    REINFORCEMENTS
    When an entity calls for reinforcements
    SILVERFISH_BLOCK
    When a silverfish spawns from a block
    SLIME_SPLIT
    When a slime splits
    SPAWNER
    When a creature spawns from a spawner
    SPAWNER_EGG
    When a creature spawns from a Spawner Egg
    VILLAGE_DEFENSE
    When an iron golem is spawned to defend a village
    VILLAGE_INVASION
    When a zombie is spawned to invade a village
  • Method Summary

    Modifier and Type Method Description
    static CreatureSpawnEvent.SpawnReason valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static CreatureSpawnEvent.SpawnReason[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait