mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
Add getWidth + getHeight for Entity
By: bramhaag <bramhagens@hotmail.nl>
This commit is contained in:
parent
cedf1495bd
commit
49200e382f
1 changed files with 10 additions and 0 deletions
|
@ -235,6 +235,16 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
||||||
entity.velocityChanged = true;
|
entity.velocityChanged = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public double getHeight() {
|
||||||
|
return getHandle().length;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public double getWidth() {
|
||||||
|
return getHandle().width;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isOnGround() {
|
public boolean isOnGround() {
|
||||||
if (entity instanceof EntityArrow) {
|
if (entity instanceof EntityArrow) {
|
||||||
return ((EntityArrow) entity).inGround;
|
return ((EntityArrow) entity).inGround;
|
||||||
|
|
Loading…
Reference in a new issue