Move health stuff from LivingEntity to Entity.

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

No files matched your search

@@ -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);
}