public class GoToPointOfInterestTask extends Task<VillagerEntity>
Task.Status| Modifier and Type | Field and Description |
|---|---|
private int |
completionRange |
private float |
speed |
requiredMemoryStates| Constructor and Description |
|---|
GoToPointOfInterestTask(float speed,
int completionRange) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
run(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
protected boolean |
shouldRun(ServerWorld serverWorld,
VillagerEntity villagerEntity) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStartingpublic GoToPointOfInterestTask(float speed,
int completionRange)
protected boolean shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
shouldRun in class Task<VillagerEntity>protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
run in class Task<VillagerEntity>