Add getWidth + getHeight for Entity
By: bramhaag <bramhagens@hotmail.nl>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user