mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +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
@ -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…
Reference in New Issue
Block a user