mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
SPIGOT-6256: Add method to check if the entity is in water
This commit is contained in:
parent
8f495b8db1
commit
bcddb7542a
1 changed files with 7 additions and 0 deletions
|
@ -98,6 +98,13 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||||
*/
|
*/
|
||||||
public boolean isOnGround();
|
public boolean isOnGround();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the entity is in water.
|
||||||
|
*
|
||||||
|
* @return <code>true</code> if the entity is in water.
|
||||||
|
*/
|
||||||
|
public boolean isInWater();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current world this entity resides in
|
* Gets the current world this entity resides in
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue