[Bleeding] Added SpawnReason.BREEDING. Addresses BUKKIT-1356

This commit is contained in:
feildmaster 2012-03-26 14:13:10 -05:00 committed by Warren Loo
parent f520069aa6
commit 979d54e78d

View File

@ -114,7 +114,10 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
LIGHTNING, LIGHTNING,
/** /**
* When a creature is spawned by a player that is sleeping * When a creature is spawned by a player that is sleeping
*
* @deprecated No longer used
*/ */
@Deprecated
BED, BED,
/** /**
* When a snowman is spawned by being built * When a snowman is spawned by being built
@ -132,6 +135,10 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
* When a zombie is spawned to invade a village * When a zombie is spawned to invade a village
*/ */
VILLAGE_INVASION, VILLAGE_INVASION,
/**
* When an animal breeds to create a child
*/
BREEDING,
/** /**
* When a creature is manually spawned * When a creature is manually spawned
*/ */