public class SleepingLocationCheckEvent extends PlayerEvent
Event.HasResult
Block.isBed(net.minecraft.world.IBlockAccess, BlockPos, net.minecraft.entity.Entity)
insteadPlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
BlockPos |
sleepingLocation |
entityPlayer
entityLiving
entity
Constructor and Description |
---|
SleepingLocationCheckEvent(EntityPlayer player,
BlockPos sleepingLocation) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public final BlockPos sleepingLocation
public SleepingLocationCheckEvent(EntityPlayer player, BlockPos sleepingLocation)