public class PlayerWakeUpEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTrackingLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Constructor and Description | 
|---|
| PlayerWakeUpEvent(EntityPlayer player,
                 boolean wakeImmediately,
                 boolean updateWorld,
                 boolean setSpawn) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | shouldSetSpawn()Indicates if the player's sleep was considered successful. | 
| boolean | updateWorld()Indicates if the server should be notified of sleeping changes. | 
| boolean | wakeImmediately()Used for the 'wake up animation'. | 
getEntityPlayergetEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic PlayerWakeUpEvent(EntityPlayer player, boolean wakeImmediately, boolean updateWorld, boolean setSpawn)
public boolean wakeImmediately()
public boolean updateWorld()
public boolean shouldSetSpawn()