public class SleepingLocationCheckEvent extends PlayerEvent
Event.HasResult
Block.isBed(IBlockState, IBlockAccess, BlockPos, Entity)
insteadPlayerEvent.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 |
---|
SleepingLocationCheckEvent(EntityPlayer player,
BlockPos sleepingLocation) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getSleepingLocation() |
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public SleepingLocationCheckEvent(EntityPlayer player, BlockPos sleepingLocation)
public BlockPos getSleepingLocation()