diff --git a/paper-api/src/main/java/org/bukkit/entity/Entity.java b/paper-api/src/main/java/org/bukkit/entity/Entity.java index 45d408f519..ca81360956 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/src/main/java/org/bukkit/entity/Entity.java @@ -805,5 +805,12 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent */ @Nullable Location getOrigin(); + + /** + * Returns whether this entity was spawned from a mob spawner. + * + * @return True if entity spawned from a mob spawner + */ + boolean fromMobSpawner(); // Paper end }