mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-19 13:38:44 +01: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. By: GJ <gjmcferrin@gmail.com>
This commit is contained in:
parent
515b357c19
commit
413ff265d8
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
|
* When a creature is spawned by a dispenser dispensing an egg
|
||||||
*/
|
*/
|
||||||
DISPENSE_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
|
* When a creature is spawned by plugins
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue