mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-12 06:43:58 +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
04b08cc9de
commit
df4db23320
@ -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…
Reference in New Issue
Block a user