mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
SPIGOT-6256: Add method to check if the entity is in water
By: montlikadani <montlikada@gmail.com>
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user