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
Modifier and Type | Field and Description |
---|---|
private boolean |
setSpawn |
private boolean |
updateWorld |
private boolean |
wakeImmediately |
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
private final boolean wakeImmediately
private final boolean updateWorld
private final boolean setSpawn
public PlayerWakeUpEvent(EntityPlayer player, boolean wakeImmediately, boolean updateWorld, boolean setSpawn)
public boolean wakeImmediately()
public boolean updateWorld()
public boolean shouldSetSpawn()