geforkt von Mirrors/Paper
Add getWidth + getHeight for Entity
Dieser Commit ist enthalten in:
Ursprung
2aa5ac6c92
Commit
dfee3d9f9f
@ -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;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren