mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-02 21:33:52 -07:00
Implement Entity.isOnGround(). Adds BUKKIT-3787
This commit is contained in:
committed by
Travis Watkins
parent
5df704bf5a
commit
93fd33e218
@@ -182,6 +182,10 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
entity.velocityChanged = true;
|
entity.velocityChanged = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isOnGround() {
|
||||||
|
return entity.onGround;
|
||||||
|
}
|
||||||
|
|
||||||
public World getWorld() {
|
public World getWorld() {
|
||||||
return ((WorldServer) entity.world).getWorld();
|
return ((WorldServer) entity.world).getWorld();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user