public class SleepTask extends Task<LivingEntity>
Task.Status| Modifier and Type | Field and Description |
|---|---|
private long |
startTime |
requiredMemoryStates| Constructor and Description |
|---|
SleepTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finishRunning(ServerWorld world,
LivingEntity entity,
long time) |
protected boolean |
isTimeLimitExceeded(long time) |
protected void |
run(ServerWorld world,
LivingEntity entity,
long time) |
protected boolean |
shouldKeepRunning(ServerWorld world,
LivingEntity entity,
long time) |
protected boolean |
shouldRun(ServerWorld world,
LivingEntity entity) |
getStatus, keepRunning, stop, tick, toString, tryStartingprotected boolean shouldRun(ServerWorld world, LivingEntity entity)
shouldRun in class Task<LivingEntity>protected boolean shouldKeepRunning(ServerWorld world, LivingEntity entity, long time)
shouldKeepRunning in class Task<LivingEntity>protected void run(ServerWorld world, LivingEntity entity, long time)
run in class Task<LivingEntity>protected boolean isTimeLimitExceeded(long time)
isTimeLimitExceeded in class Task<LivingEntity>protected void finishRunning(ServerWorld world, LivingEntity entity, long time)
finishRunning in class Task<LivingEntity>