Skip to content

Commit

Permalink
[Bleeding] Add SpawnReasons to cover new Minecraft features.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gmcferrin authored and amaranth committed Apr 18, 2014
1 parent 8f42f10 commit ded772d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,27 @@ public enum SpawnReason {
* 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
*/
Expand Down

0 comments on commit ded772d

Please sign in to comment.