added some API for entities
By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
parent
cebf24179e
commit
b09f01d4f7
2 changed files with 8 additions and 27 deletions
|
@ -238,4 +238,12 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||
getHandle().passenger.setPassengerOf(null);
|
||||
return true;
|
||||
}
|
||||
|
||||
public float getFallDistance() {
|
||||
return getHandle().fallDistance;
|
||||
}
|
||||
|
||||
public void setFallDistance(float distance) {
|
||||
getHandle().fallDistance = distance;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue