mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-6256: Add method to check if the entity is in water
This commit is contained in:
parent
768d7fc2df
commit
22d7fcc98f
1 changed files with 5 additions and 0 deletions
|
@ -444,6 +444,11 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||
return entity.isOnGround();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInWater() {
|
||||
return entity.isInWater();
|
||||
}
|
||||
|
||||
@Override
|
||||
public World getWorld() {
|
||||
return entity.world.getWorld();
|
||||
|
|
Loading…
Add table
Reference in a new issue