public class SleepingLocationCheckEvent extends PlayerEvent
Event.HasResultnet.minecraft.block.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.StopTrackingLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Constructor and Description |
|---|
SleepingLocationCheckEvent(EntityPlayer player,
BlockPos sleepingLocation) |
| Modifier and Type | Method and Description |
|---|---|
BlockPos |
getSleepingLocation() |
getEntityPlayergetEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic SleepingLocationCheckEvent(EntityPlayer player, BlockPos sleepingLocation)
public BlockPos getSleepingLocation()