Added LivingEntity.throwEgg() and LivingEntity.throwSnowball().

By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-01-03 17:44:30 +08:00
parent 9370aac0da
commit 7c4860c3b5
3 changed files with 28 additions and 0 deletions

View File

@@ -18,4 +18,14 @@ public interface LivingEntity extends Entity {
* @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();
}