From 6bc36a917cc8f71fd188a370c834b30378fb7710 Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 5 Feb 2014 11:38:58 -0500 Subject: [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. --- .../org/bukkit/event/entity/CreatureSpawnEvent.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src') diff --git a/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java index 46b82622..288e98bd 100644 --- a/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java +++ b/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java @@ -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 */ -- cgit v1.2.3