Implement Entity.isOnGround(). Adds BUKKIT-3787

This commit is contained in:
Chad Waters 2013-03-17 11:51:11 -04:00 committed by Travis Watkins
parent 5df704bf5a
commit 93fd33e218

View File

@ -182,6 +182,10 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
entity.velocityChanged = true;
}
public boolean isOnGround() {
return entity.onGround;
}
public World getWorld() {
return ((WorldServer) entity.world).getWorld();
}