Class SleepInBed
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<LivingEntity>
net.minecraft.world.entity.ai.behavior.SleepInBed
- All Implemented Interfaces:
- BehaviorControl<LivingEntity>
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.BehaviorBehavior.Status
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intprivate longFields inherited from class net.minecraft.world.entity.ai.behavior.BehaviorDEFAULT_DURATION, entryCondition
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_) Methods inherited from class net.minecraft.world.entity.ai.behavior.BehaviordebugString, doStop, getStatus, hasRequiredMemories, tick, tickOrStop, tryStart
- 
Field Details- 
COOLDOWN_AFTER_BEING_WOKENpublic static final int COOLDOWN_AFTER_BEING_WOKEN- See Also:
 
- 
nextOkStartTimeprivate long nextOkStartTime
 
- 
- 
Constructor Details- 
SleepInBedpublic SleepInBed()
 
- 
- 
Method Details- 
checkExtraStartConditions- Overrides:
- checkExtraStartConditionsin class- Behavior<LivingEntity>
 
- 
canStillUse- Overrides:
- canStillUsein class- Behavior<LivingEntity>
 
- 
start- Overrides:
- startin class- Behavior<LivingEntity>
 
- 
timedOutprotected boolean timedOut(long p_24152_) - Overrides:
- timedOutin class- Behavior<LivingEntity>
 
- 
stop- Overrides:
- stopin class- Behavior<LivingEntity>
 
 
-