mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-6256: Add method to check if the entity is in water
By: montlikadani <montlikada@gmail.com>
This commit is contained in:
parent
dcb21e0c7d
commit
ddabe8f3b9
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue