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

This commit is contained in:
montlikadani 2020-12-21 18:20:58 +11:00 committed by md_5
parent 8f495b8db1
commit bcddb7542a
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

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
*