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

This commit is contained in:
montlikadani 2020-12-21 18:20:54 +11:00 committed by md_5
parent 768d7fc2df
commit 22d7fcc98f
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

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