diff options
author | TomyLobo <tomylobo@nurfuerspam.de> | 2011-11-25 02:09:30 +0100 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2012-06-28 19:33:33 -0500 |
commit | 16d0694dcf9f44d329f1ed17ad97084ffc7afcdf (patch) | |
tree | cf57f207d2a03a8468f0f7e6553c924c7f00b6b5 /src/main/java/org | |
parent | 34b63c06cc2a3e7ab25b69c047893c477ab500ba (diff) | |
download | bukkit-16d0694dcf9f44d329f1ed17ad97084ffc7afcdf.tar bukkit-16d0694dcf9f44d329f1ed17ad97084ffc7afcdf.tar.gz bukkit-16d0694dcf9f44d329f1ed17ad97084ffc7afcdf.tar.lz bukkit-16d0694dcf9f44d329f1ed17ad97084ffc7afcdf.tar.xz bukkit-16d0694dcf9f44d329f1ed17ad97084ffc7afcdf.zip |
Add an isValid() method to Entity. Addresses BUKKIT-810
Diffstat (limited to 'src/main/java/org')
-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 |