SPIGOT-6256: Add method to check if the entity is in water
By: montlikadani <montlikada@gmail.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user