SPIGOT-6256: Add method to check if the entity is in water

By: montlikadani <montlikada@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2020-12-21 18:20:54 +11:00
parent 04b08cc9de
commit df4db23320

View File

@ -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();