Added bed events and methods.

By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-04-07 11:26:33 -07:00
parent b6e68ee5e5
commit f31d7de587
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();
}