Class SleepInBed
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<LivingEntity>
net.minecraft.world.entity.ai.behavior.SleepInBed
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate longFields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel p_24161_, LivingEntity p_24162_, long p_24163_) protected booleancheckExtraStartConditions(ServerLevel p_24154_, LivingEntity p_24155_) protected voidstart(ServerLevel p_24157_, LivingEntity p_24158_, long p_24159_) protected voidstop(ServerLevel p_24165_, LivingEntity p_24166_, long p_24167_) protected booleantimedOut(long p_24152_)
-
Field Details
-
COOLDOWN_AFTER_BEING_WOKEN
public static final int COOLDOWN_AFTER_BEING_WOKEN- See Also:
-
nextOkStartTime
private long nextOkStartTime
-
-
Constructor Details
-
SleepInBed
public SleepInBed()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<LivingEntity>
-
canStillUse
- Overrides:
canStillUsein classBehavior<LivingEntity>
-
start
- Overrides:
startin classBehavior<LivingEntity>
-
timedOut
protected boolean timedOut(long p_24152_) - Overrides:
timedOutin classBehavior<LivingEntity>
-
stop
- Overrides:
stopin classBehavior<LivingEntity>
-