public class SleepingTimeCheckEvent extends PlayerEvent
Event.HasResultWorld.isDaytime() instead.PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.VisibilityLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Constructor and Description | 
|---|
SleepingTimeCheckEvent(EntityPlayer player,
                      BlockPos sleepingLocation)  | 
| Modifier and Type | Method and Description | 
|---|---|
BlockPos | 
getSleepingLocation()
Note that the sleeping location may be an approximated one. 
 | 
getEntityPlayergetEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic SleepingTimeCheckEvent(EntityPlayer player, BlockPos sleepingLocation)
public BlockPos getSleepingLocation()