3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

Add getWidth + getHeight for Entity

Dieser Commit ist enthalten in:
bramhaag 2017-03-18 11:08:37 +01:00 committet von md_5
Ursprung 2aa5ac6c92
Commit dfee3d9f9f

Datei anzeigen

@ -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;