Implement Entity.isOnGround(). Adds BUKKIT-3787

This commit is contained in:
Chad Waters authored and Travis Watkins committed 2013-03-17 22:25:05 -05:00
1 parent 5df704bf5a
commit 93fd33e218
1 file changed
+4
@@ -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();
}