summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChad Waters <authorblues@gmail.com>2013-03-17 11:51:11 -0400
committerTravis Watkins <amaranth@ubuntu.com>2013-03-17 22:25:05 -0500
commit93fd33e2183f5352eb5243c806747743033a6dc2 (patch)
treed6e03a11d9a8e22d0cd2d5a56199b4bef1d0dd9b /src/main
parent5df704bf5ac79e3c85acf624e21ee61f08f63788 (diff)
downloadcraftbukkit-93fd33e2183f5352eb5243c806747743033a6dc2.tar
craftbukkit-93fd33e2183f5352eb5243c806747743033a6dc2.tar.gz
craftbukkit-93fd33e2183f5352eb5243c806747743033a6dc2.tar.lz
craftbukkit-93fd33e2183f5352eb5243c806747743033a6dc2.tar.xz
craftbukkit-93fd33e2183f5352eb5243c806747743033a6dc2.zip
Implement Entity.isOnGround(). Adds BUKKIT-3787
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
index 0edf2d95..d0510aff 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();
}