Enum Class CreatureSpawnEvent.SpawnReason

java.lang.Object
java.lang.Enum<CreatureSpawnEvent.SpawnReason>
org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason
All Implemented Interfaces:
Serializable, Comparable<CreatureSpawnEvent.SpawnReason>, 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 entity breeds to create a child, this also include Shulker and Allay
    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 an Allay duplicate itself
    When a creature spawns from an egg
    When an entity is spawned as a result of ender pearl usage
    When an entity is spawned as a result of an explosion.
    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 a tadpole converts to a frog
    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 piglin.
    When an entity is spawned as part of a raid
    When an entity calls for reinforcements
    When a 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 is created by a cast spell.
    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
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait