mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Add an isValid() method to Entity. Addresses BUKKIT-810
This commit is contained in:
parent
34b63c06cc
commit
16d0694dcf
2 changed files with 11 additions and 0 deletions
|
@ -129,6 +129,13 @@ public interface Entity extends Metadatable {
|
||||||
*/
|
*/
|
||||||
public boolean isDead();
|
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
|
* Gets the {@link Server} that contains this Entity
|
||||||
*
|
*
|
||||||
|
|
|
@ -760,4 +760,8 @@ public class TestPlayer implements Player {
|
||||||
public boolean hasLineOfSight(Entity other) {
|
public boolean hasLineOfSight(Entity other) {
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isValid() {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue