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

This commit is contained in:
sk89q 2011-01-03 17:44:30 +08:00 committed by Dinner Bone
parent 4c5a66f2a6
commit 7b1ab8e62a
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,9 @@
package org.bukkit;
/**
* Represents an egg.
*
* @author sk89q
*/
public interface Egg extends Entity {
}

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

View File

@ -0,0 +1,9 @@
package org.bukkit;
/**
* Implements a snowball.
*
* @author sk89q
*/
public interface Snowball extends Entity {
}