mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
Add getWidth + getHeight for Entity
This commit is contained in:
parent
2aa5ac6c92
commit
dfee3d9f9f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user