public class PlayerSleepInBedEvent extends PlayerEvent
result
contains whether the player is able to sleep. Cancelable
.
HasResult
MinecraftForge#EVENT_BUS
.PlayerEvent.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 |
---|---|
EntityPlayer.EnumStatus |
result |
int |
x |
int |
y |
int |
z |
entityPlayer
entityLiving
entity
Constructor and Description |
---|
PlayerSleepInBedEvent(EntityPlayer player,
int x,
int y,
int z) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public EntityPlayer.EnumStatus result
public final int x
public final int y
public final int z
public PlayerSleepInBedEvent(EntityPlayer player, int x, int y, int z)