From dd6eafac9554fc6cd183557ea3d8e22ef9a0648e Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 13 Mar 2016 15:46:49 +0100 Subject: [PATCH] Added CreatureSpawnEvent.SpawnReason.TRAP By: BlackHole --- .../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 c035b37bdc..b5778f5cf1 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 @@ -164,6 +164,10 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable { * jockeys) */ MOUNT, + /** + * When an entity spawns as a trap for players approaching + */ + TRAP, /** * When a creature is spawned by plugins */