mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
[Bleeding] Add SpawnReasons to cover new Minecraft features.
Adds BUKKIT-5370, BUKKIT-5378, BUKKIT-5382, BUKKIT-5482. Covers zombie villagers, ocelot babies, silverfish popping out of blocks, and mobs spawning with a mount.
This commit is contained in:
parent
e02ea29e31
commit
6bc36a917c
1 changed files with 21 additions and 0 deletions
|
@ -162,6 +162,27 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
|
|||
* When a creature is spawned by a dispenser dispensing an egg
|
||||
*/
|
||||
DISPENSE_EGG,
|
||||
/**
|
||||
* When a zombie infects a villager
|
||||
*/
|
||||
INFECTION,
|
||||
/**
|
||||
* When a villager is cured from infection
|
||||
*/
|
||||
CURED,
|
||||
/**
|
||||
* When an ocelot has a baby spawned along with them
|
||||
*/
|
||||
OCELOT_BABY,
|
||||
/**
|
||||
* When a silverfish spawns from a block
|
||||
*/
|
||||
SILVERFISH_BLOCK,
|
||||
/**
|
||||
* When an entity spawns as a mount of another entity (mostly chicken
|
||||
* jockeys)
|
||||
*/
|
||||
MOUNT,
|
||||
/**
|
||||
* When a creature is spawned by plugins
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue