From 10e415be50eecca0b031d2cdb9dd21bc49050e28 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 14 Apr 2012 01:31:59 -0500 Subject: [PATCH] Add SpawnReason.DEFAULT, to make SpawnReason.CUSTOM solely for plugins By: feildmaster --- .../java/org/bukkit/event/entity/CreatureSpawnEvent.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 b5e0fd93b9..fb859248c0 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 @@ -144,8 +144,12 @@ public class CreatureSpawnEvent extends EntityEvent implements Cancellable { */ SLIME_SPLIT, /** - * When a creature is manually spawned + * When a creature is spawned by plugins */ - CUSTOM + CUSTOM, + /** + * When an entity is missing a SpawnReason + */ + DEFAULT } }