PaperMC/paper-api/src/main/java/org/bukkit/LivingEntity.java
Bukkit/Spigot a0fc0979f7 Transition to Maven
By: Erik Broes <erikbroes@grum.nl>
2011-01-01 11:23:14 +01:00

21 lines
496 B
Java

package org.bukkit;
/**
* Represents a living entity, such as a monster or player
*/
public interface LivingEntity extends Entity {
/**
* 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);
}