public class WalkTowardClosestAdultTask<E extends PassiveEntity> extends Task<E>
Task.Status| Modifier and Type | Field and Description |
|---|---|
private IntRange |
executionRange |
private float |
speed |
requiredMemoryStates| Constructor and Description |
|---|
WalkTowardClosestAdultTask(IntRange executionRange,
float speed) |
| Modifier and Type | Method and Description |
|---|---|
private PassiveEntity |
getNearestVisibleAdult(E entity) |
protected void |
run(ServerWorld serverWorld,
E e,
long long2) |
protected boolean |
shouldRun(ServerWorld serverWorld,
E e) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStartingprivate final IntRange executionRange
private final float speed
public WalkTowardClosestAdultTask(IntRange executionRange, float speed)
protected boolean shouldRun(ServerWorld serverWorld, E e)
shouldRun in class Task<E extends PassiveEntity>protected void run(ServerWorld serverWorld, E e, long long2)
run in class Task<E extends PassiveEntity>private PassiveEntity getNearestVisibleAdult(E entity)