added some API for entities

By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-04-04 00:44:52 -04:00
parent 1a1d4e95f4
commit 97fd93727d
5 changed files with 84 additions and 0 deletions

View File

@@ -156,4 +156,17 @@ public interface Entity {
* @return
*/
public abstract boolean eject();
/**
* Returns the distance this entity has fallen
* @return
*/
public float getFallDistance();
/**
* Sets the fall distance for this entity
* @param distance
*/
public void setFallDistance(float distance);
}