Move health stuff from LivingEntity to Entity.

By: angelsl <angelsl@rpm>
This commit is contained in:
Bukkit/Spigot
2011-01-03 17:40:26 +08:00
parent b2817db6b7
commit d3240391ad
4 changed files with 25 additions and 11 deletions

View File

@@ -32,4 +32,17 @@ public interface Entity {
* @return Entity ID
*/
public int getEntityID();
/**
* Gets the entitys health from 0-20, where 0 is dead and 20 is full
*
* @return Health represented from 0-20
*/
public int getHealth();
/**
* Sets the entitys health from 0-20, where 0 is dead and 20 is full
*
* @param health New health represented from 0-20
*/
public void setHealth(int health);
}