Added bed events and methods.

This commit is contained in:
sk89q
2011-04-07 11:26:33 -07:00
parent 748447716b
commit ef5d72ec02
6 changed files with 136 additions and 0 deletions

View File

@@ -45,4 +45,18 @@ public interface HumanEntity extends LivingEntity {
*
public void selectItemInHand( int index );
*/
/**
* Returns whether this player is slumbering.
*
* @return slumber state
*/
public boolean isSleeping();
/**
* Get the sleep ticks of the player. This value may be capped.
*
* @return slumber ticks
*/
public int getSleepTicks();
}