public class FindWalkTargetTask extends Task<PathAwareEntity>
Task.Status
Modifier and Type | Field and Description |
---|---|
private int |
maxHorizontalDistance |
private int |
maxVerticalDistance |
private float |
walkSpeed |
requiredMemoryStates
Constructor and Description |
---|
FindWalkTargetTask(float walkSpeed) |
FindWalkTargetTask(float walkSpeed,
int maxHorizontalDistance,
int maxVerticalDistance) |
Modifier and Type | Method and Description |
---|---|
protected void |
run(ServerWorld serverWorld,
PathAwareEntity pathAwareEntity,
long long2) |
private void |
updateWalkTarget(PathAwareEntity entity) |
private void |
updateWalkTarget(PathAwareEntity entity,
ChunkSectionPos pos) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
private final float walkSpeed
private final int maxHorizontalDistance
private final int maxVerticalDistance
public FindWalkTargetTask(float walkSpeed)
public FindWalkTargetTask(float walkSpeed, int maxHorizontalDistance, int maxVerticalDistance)
protected void run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
run
in class Task<PathAwareEntity>
private void updateWalkTarget(PathAwareEntity entity, ChunkSectionPos pos)
private void updateWalkTarget(PathAwareEntity entity)