public class SleepingLocationCheckEvent extends LivingEvent
Event.HasResult
Block#isBed(IBlockState, net.minecraft.world.IWorldReader, BlockPos, Entity)
insteadLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private BlockPos |
sleepingLocation |
Constructor and Description |
---|
SleepingLocationCheckEvent(LivingEntity player,
BlockPos sleepingLocation) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getSleepingLocation() |
getEntityLiving
getEntity
private final BlockPos sleepingLocation
public SleepingLocationCheckEvent(LivingEntity player, BlockPos sleepingLocation)
public BlockPos getSleepingLocation()