diff options
author | bramhaag <bramhagens@hotmail.nl> | 2017-03-18 11:08:37 +0100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-03-19 10:51:59 +1100 |
commit | dfee3d9f9f3b8ea63c21a5c8858f78aa89d3b24d (patch) | |
tree | 50b1ebb4dfb6f3bb575df39cb1dc89308b8a35f4 /src/main/java/org | |
parent | 2aa5ac6c92a0e53ae917cae348d662d014ef9366 (diff) | |
download | craftbukkit-dfee3d9f9f3b8ea63c21a5c8858f78aa89d3b24d.tar craftbukkit-dfee3d9f9f3b8ea63c21a5c8858f78aa89d3b24d.tar.gz craftbukkit-dfee3d9f9f3b8ea63c21a5c8858f78aa89d3b24d.tar.lz craftbukkit-dfee3d9f9f3b8ea63c21a5c8858f78aa89d3b24d.tar.xz craftbukkit-dfee3d9f9f3b8ea63c21a5c8858f78aa89d3b24d.zip |
Add getWidth + getHeight for Entity
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 10 |
1 files changed, 10 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 c21e49b9..a8923154 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -235,6 +235,16 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { entity.velocityChanged = true; } + @Override + public double getHeight() { + return getHandle().length; + } + + @Override + public double getWidth() { + return getHandle().width; + } + public boolean isOnGround() { if (entity instanceof EntityArrow) { return ((EntityArrow) entity).inGround; |