From 46e42dd3627d281872c2f579a91aea4e87011ce7 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 7 Sep 2019 16:34:21 +1000 Subject: [PATCH] SPIGOT-5255: Raid / patrol spawn reasons By: md_5 --- .../java/org/bukkit/event/entity/CreatureSpawnEvent.java | 8 ++++++++ 1 file changed, 8 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 17aa6722b6..f7049face3 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 @@ -161,6 +161,14 @@ public class CreatureSpawnEvent extends EntitySpawnEvent { * When eg an effect cloud is spawned as a result of a creeper exploding */ EXPLOSION, + /** + * When an entity is spawned as part of a raid + */ + RAID, + /** + * When an entity is spawned as part of a patrol + */ + PATROL, /** * When a creature is spawned by plugins */