mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 20:53:54 -07:00
32 lines
682 B
Java
32 lines
682 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);
|
|
|
|
/**
|
|
* Throws an egg from the entity.
|
|
*/
|
|
public Egg throwEgg();
|
|
|
|
/**
|
|
* Throws a snowball from the entity.
|
|
*/
|
|
public Snowball throwSnowball();
|
|
}
|