From 862648f1e77af1232794995e398bb1fdbee8a5b8 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 8 Mar 2012 22:10:17 -0500 Subject: [PATCH] Made zombie invasions fire CreatureSpawn event. Fixes BUKKIT-1090 By: EvilSeph --- .../main/java/org/bukkit/event/entity/CreatureSpawnEvent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java index 5bd3a0ad96..6337e33e3e 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/CreatureSpawnEvent.java @@ -128,6 +128,10 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable { * When an iron golem is spawned to defend a village */ VILLAGE_DEFENSE, + /** + * When a zombie is spawned to invade a village + */ + VILLAGE_INVASION, /** * When a creature is manually spawned */