public class PlayerWakeUpEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private boolean |
updateWorld |
private boolean |
wakeImmediately |
Constructor and Description |
---|
PlayerWakeUpEvent(PlayerEntity player,
boolean wakeImmediately,
boolean updateWorld) |
Modifier and Type | Method and Description |
---|---|
boolean |
updateWorld()
Indicates if the server should be notified of sleeping changes.
|
boolean |
wakeImmediately()
Used for the 'wake up animation'.
|
getPlayer
getEntityLiving
getEntity
private final boolean wakeImmediately
private final boolean updateWorld
public PlayerWakeUpEvent(PlayerEntity player, boolean wakeImmediately, boolean updateWorld)
public boolean wakeImmediately()
public boolean updateWorld()