Class SleepAtHomeTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.SleepAtHomeTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerWorld p_212834_1_, LivingEntity p_212834_2_, long p_212834_3_) protected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, LivingEntity p_212832_2_) protected void
start
(ServerWorld p_212831_1_, LivingEntity p_212831_2_, long p_212831_3_) protected void
stop
(ServerWorld p_212835_1_, LivingEntity p_212835_2_, long p_212835_3_) protected boolean
timedOut
(long p_220383_1_)
-
Field Details
-
nextOkStartTime
private long nextOkStartTime
-
-
Constructor Details
-
SleepAtHomeTask
public SleepAtHomeTask()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<LivingEntity>
-
canStillUse
- Overrides:
canStillUse
in classTask<LivingEntity>
-
start
- Overrides:
start
in classTask<LivingEntity>
-
timedOut
protected boolean timedOut(long p_220383_1_) - Overrides:
timedOut
in classTask<LivingEntity>
-
stop
- Overrides:
stop
in classTask<LivingEntity>
-