diff options
author | Chad Waters <authorblues@gmail.com> | 2013-03-17 11:51:11 -0400 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-03-17 22:25:05 -0500 |
commit | 93fd33e2183f5352eb5243c806747743033a6dc2 (patch) | |
tree | d6e03a11d9a8e22d0cd2d5a56199b4bef1d0dd9b /src/main | |
parent | 5df704bf5ac79e3c85acf624e21ee61f08f63788 (diff) | |
download | craftbukkit-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.java | 4 |
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(); } |