mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 18:39:42 -05:00
Add an isValid() method to Entity. Addresses BUKKIT-810
By: TomyLobo <tomylobo@nurfuerspam.de>
This commit is contained in:
1 parent
d4f4e9f5d1
commit
a767f3fed8
2 files changed
+11
No files matched your search
@@ -129,6 +129,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
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user