net.minecraft.entity.ai.brain.task

public class SleepTask

extends MultiTickTask<LivingEntity>

All mapped superinterfaces:

Task

net.minecraft.world.entity.ai.behavior.SleepInBed
net.minecraft.class_4123
net.minecraft.entity.ai.brain.task.SleepTask

Field summary

Modifier and TypeField
public static final int
COOLDOWN_AFTER_BEING_WOKEN
field_30175
RUN_TIME
private long
nextOkStartTime
field_18848
startTime

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected boolean
checkExtraStartConditions(ServerLevel level, LivingEntity body)
method_18919(class_3218 arg0, class_1309 arg1)
shouldRun(ServerWorld arg0, LivingEntity arg1)
protected boolean
canStillUse(ServerLevel level, LivingEntity body, long timestamp)
method_18927(class_3218 arg0, class_1309 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, LivingEntity arg1, long arg2)
protected void
start(ServerLevel level, LivingEntity body, long timestamp)
method_18920(class_3218 arg0, class_1309 arg1, long arg2)
run(ServerWorld arg0, LivingEntity arg1, long arg2)
protected boolean
timedOut(long timestamp)
method_18915(long arg0)
isTimeLimitExceeded(long arg0)
protected void
stop(ServerLevel level, LivingEntity body, long timestamp)
method_18926(class_3218 arg0, class_1309 arg1, long arg2)
finishRunning(ServerWorld arg0, LivingEntity arg1, long arg2)