Task.Status
Modifier and Type | Field and Description |
---|---|
private BlockPos |
lookTargetPos |
private Path |
path |
private int |
pathUpdateCountdownTicks |
private float |
speed |
requiredMemoryStates
Constructor and Description |
---|
WanderAroundTask() |
WanderAroundTask(int int2,
int int3) |
Modifier and Type | Method and Description |
---|---|
protected void |
finishRunning(ServerWorld serverWorld,
MobEntity mobEntity,
long long2) |
private boolean |
hasFinishedPath(MobEntity mobEntity,
WalkTarget walkTarget,
long time) |
private boolean |
hasReached(MobEntity entity,
WalkTarget walkTarget) |
protected void |
keepRunning(ServerWorld serverWorld,
MobEntity mobEntity,
long long2) |
protected void |
run(ServerWorld serverWorld,
MobEntity mobEntity,
long long2) |
protected boolean |
shouldKeepRunning(ServerWorld serverWorld,
MobEntity mobEntity,
long long2) |
protected boolean |
shouldRun(ServerWorld serverWorld,
MobEntity mobEntity) |
getStatus, isTimeLimitExceeded, stop, tick, toString, tryStarting
private int pathUpdateCountdownTicks
private float speed
public WanderAroundTask()
public WanderAroundTask(int int2, int int3)
protected boolean shouldRun(ServerWorld serverWorld, MobEntity mobEntity)
protected boolean shouldKeepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
shouldKeepRunning
in class Task<MobEntity>
protected void finishRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
finishRunning
in class Task<MobEntity>
protected void run(ServerWorld serverWorld, MobEntity mobEntity, long long2)
protected void keepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
keepRunning
in class Task<MobEntity>
private boolean hasFinishedPath(MobEntity mobEntity, WalkTarget walkTarget, long time)
private boolean hasReached(MobEntity entity, WalkTarget walkTarget)