public class PlayerWakeUpEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.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'.
|
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public PlayerWakeUpEvent(EntityPlayer player, boolean wakeImmediately, boolean updateWorld, boolean setSpawn)
public boolean wakeImmediately()
public boolean updateWorld()
public boolean shouldSetSpawn()