From 93fd33e2183f5352eb5243c806747743033a6dc2 Mon Sep 17 00:00:00 2001 From: Chad Waters Date: Sun, 17 Mar 2013 11:51:11 -0400 Subject: [PATCH] Implement Entity.isOnGround(). Adds BUKKIT-3787 --- src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 0edf2d95c4..d0510aff44 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -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(); }