public class GoToSecondaryPositionTask extends Task<VillagerEntity>
Task.Status
Modifier and Type | Field and Description |
---|---|
private GlobalPos |
chosenPosition |
private int |
completionRange |
private long |
nextRunTime |
private MemoryModuleType<GlobalPos> |
primaryPosition |
private int |
primaryPositionActivationDistance |
private MemoryModuleType<List<GlobalPos>> |
secondaryPositions |
private float |
speed |
requiredMemoryStates
Constructor and Description |
---|
GoToSecondaryPositionTask(MemoryModuleType<List<GlobalPos>> secondaryPositions,
float speed,
int completionRange,
int primaryPositionActivationDistance,
MemoryModuleType<GlobalPos> primaryPosition) |
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, tryStarting
private final MemoryModuleType<List<GlobalPos>> secondaryPositions
private final MemoryModuleType<GlobalPos> primaryPosition
private final float speed
private final int completionRange
private final int primaryPositionActivationDistance
private long nextRunTime
public GoToSecondaryPositionTask(MemoryModuleType<List<GlobalPos>> secondaryPositions, float speed, int completionRange, int primaryPositionActivationDistance, MemoryModuleType<GlobalPos> primaryPosition)
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>