Enum CreatureSpawnEvent.SpawnReason

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

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

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

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

    Enum Constants
    Enum Constant
    Description
    When a bee is released from a beehive/bee nest
    When an animal breeds to create a child
    When an iron golem is spawned by being built
    When a snowman is spawned by being built
    When a wither boss is spawned by being built
    Deprecated.
    no longer called, chunks are generated with entities already existing.
    When a creature is spawned by the "/summon" command
    When a villager is cured from infection
    When a creature is spawned by plugins
    When an entity is missing a SpawnReason
    When a creature is spawned by a dispenser dispensing an egg
    When a creature is spawned by another entity drowning
    When a creature spawns from an egg
    When an entity is spawned as a result of ender pearl usage
    When eg an effect cloud is spawned as a result of a creeper exploding
    When an entity is shaking in Powder Snow and a new entity spawns.
    When a zombie infects a villager
    When an entity spawns as a jockey of another entity (mostly spider jockeys)
    When a creature spawns because of a lightning strike
    When an entity spawns as a mount of another entity (mostly chicken jockeys)
    When something spawns from natural means
    When a creature is spawned by nether portal
    When an ocelot has a baby spawned along with them
    When an entity is spawned as part of a patrol
    When a piglin is converted to a zombified piglib.
    When an entity is spawned as part of a raid
    When an entity calls for reinforcements
    When an cow is spawned by shearing a mushroom cow
    When an entity is spawned as a result of the entity it is being perched on jumping or being damaged
    When a silverfish spawns from a block
    When a slime splits
    When a creature spawns from a spawner
    When a creature spawns from a Spawner Egg
    When an entity spawns as a trap for players approaching
    When an iron golem is spawned to defend a village
    When a zombie is spawned to invade a village
  • Method Summary

    Modifier and Type
    Method
    Description
    valueOf​(String name)
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait