SPIGOT-6256: Add method to check if the entity is in water
This commit is contained in:
parent
768d7fc2df
commit
22d7fcc98f
@ -444,6 +444,11 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
return entity.isOnGround();
|
return entity.isOnGround();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isInWater() {
|
||||||
|
return entity.isInWater();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public World getWorld() {
|
public World getWorld() {
|
||||||
return entity.world.getWorld();
|
return entity.world.getWorld();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user