public class WalkHomeTask extends Task<LivingEntity>
Task.Status| Modifier and Type | Field and Description |
|---|---|
private long |
expiryTimeLimit |
private it.unimi.dsi.fastutil.longs.Long2LongMap |
positionToExpiry |
private float |
speed |
private int |
tries |
requiredMemoryStates| Constructor and Description |
|---|
WalkHomeTask(float speed) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
run(ServerWorld world,
LivingEntity entity,
long time) |
protected boolean |
shouldRun(ServerWorld world,
LivingEntity entity) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStartingprivate final float speed
private final it.unimi.dsi.fastutil.longs.Long2LongMap positionToExpiry
private int tries
private long expiryTimeLimit
protected boolean shouldRun(ServerWorld world, LivingEntity entity)
shouldRun in class Task<LivingEntity>protected void run(ServerWorld world, LivingEntity entity, long time)
run in class Task<LivingEntity>