SPIGOT-6256: Add method to check if the entity is in water

By: montlikadani <montlikada@gmail.com>
This commit is contained in:
Bukkit/Spigot 2020-12-21 18:20:58 +11:00
parent dcb21e0c7d
commit ddabe8f3b9

View File

@ -98,6 +98,13 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
*/
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
*