diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/entity/Entity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java index 4f75e270..9058429b 100644 --- a/src/main/java/org/bukkit/entity/Entity.java +++ b/src/main/java/org/bukkit/entity/Entity.java @@ -130,6 +130,13 @@ public interface Entity extends Metadatable { public boolean isDead(); /** + * Returns false if the entity has died or been despawned for some other + * reason. + * @return True if valid. + */ + public boolean isValid(); + + /** * Gets the {@link Server} that contains this Entity * * @return Server instance running this Entity |