类 SleepingLocationCheckEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.player.SleepingLocationCheckEvent
This event is fired when game checks, if sleeping player should be still considered "in bed".
Failing this check will cause player to wake up.
This event has a result.
setResult(ALLOW) informs game that player is still "in bed"
setResult(DEFAULT) causes game to check
Failing this check will cause player to wake up.
This event has a result.
Event.HasResult
setResult(ALLOW) informs game that player is still "in bed"
setResult(DEFAULT) causes game to check
IForgeBlock.isBed(BlockState, BlockGetter, BlockPos, Entity)
instead-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
从类继承的嵌套类/接口 net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 net.minecraftforge.event.entity.living.LivingEvent
getEntity
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
sleepingLocation
-
-
构造器详细资料
-
SleepingLocationCheckEvent
-
-
方法详细资料
-
getSleepingLocation
-