public class SleepingTimeCheckEvent extends PlayerEvent
Event.HasResult
World.isDaytime()
instead.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 BlockPos |
sleepingLocation |
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.
|
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final BlockPos sleepingLocation
public SleepingTimeCheckEvent(EntityPlayer player, BlockPos sleepingLocation)
public BlockPos getSleepingLocation()