public class GoToIfNearbyTask extends Task<PathAwareEntity>
Task.Status
Modifier and Type | Field and Description |
---|---|
private float |
field_25752 |
private int |
maxDistance |
private long |
nextUpdateTime |
private MemoryModuleType<GlobalPos> |
target |
requiredMemoryStates
Constructor and Description |
---|
GoToIfNearbyTask(MemoryModuleType<GlobalPos> target,
float float2,
int int2) |
Modifier and Type | Method and Description |
---|---|
protected void |
run(ServerWorld serverWorld,
PathAwareEntity pathAwareEntity,
long long2) |
protected boolean |
shouldRun(ServerWorld serverWorld,
PathAwareEntity pathAwareEntity) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
private final MemoryModuleType<GlobalPos> target
private long nextUpdateTime
private final int maxDistance
private float field_25752
public GoToIfNearbyTask(MemoryModuleType<GlobalPos> target, float float2, int int2)
protected boolean shouldRun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity)
shouldRun
in class Task<PathAwareEntity>
protected void run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
run
in class Task<PathAwareEntity>