类 SleepInBed
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<LivingEntity>
net.minecraft.world.entity.ai.behavior.SleepInBed
- 所有已实现的接口:
BehaviorControl<LivingEntity>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
字段概要
字段从类继承的字段 net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected boolean
canStillUse
(ServerLevel p_24161_, LivingEntity p_24162_, long p_24163_) protected boolean
checkExtraStartConditions
(ServerLevel p_24154_, LivingEntity p_24155_) protected void
start
(ServerLevel p_24157_, LivingEntity p_24158_, long p_24159_) protected void
stop
(ServerLevel p_24165_, LivingEntity p_24166_, long p_24167_) protected boolean
timedOut
(long p_24152_) 从类继承的方法 net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tick, tickOrStop, tryStart
-
字段详细资料
-
COOLDOWN_AFTER_BEING_WOKEN
public static final int COOLDOWN_AFTER_BEING_WOKEN- 另请参阅:
-
nextOkStartTime
private long nextOkStartTime
-
-
构造器详细资料
-
SleepInBed
public SleepInBed()
-
-
方法详细资料
-
checkExtraStartConditions
-
canStillUse
- 覆盖:
canStillUse
在类中Behavior<LivingEntity>
-
start
- 覆盖:
start
在类中Behavior<LivingEntity>
-
timedOut
protected boolean timedOut(long p_24152_) - 覆盖:
timedOut
在类中Behavior<LivingEntity>
-
stop
- 覆盖:
stop
在类中Behavior<LivingEntity>
-