public class FindPointOfInterestTask extends Task<PathAwareEntity>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FindPointOfInterestTask.RetryMarker |
Task.Status
Modifier and Type | Field and Description |
---|---|
private Optional<Byte> |
field_25812 |
private it.unimi.dsi.fastutil.longs.Long2ObjectMap<FindPointOfInterestTask.RetryMarker> |
foundPositionsToExpiry |
private boolean |
onlyRunIfChild |
private PointOfInterestType |
poiType |
private long |
positionExpireTimeLimit |
private MemoryModuleType<GlobalPos> |
targetMemoryModuleType |
requiredMemoryStates
Constructor and Description |
---|
FindPointOfInterestTask(PointOfInterestType pointOfInterestType,
MemoryModuleType<GlobalPos> memoryModuleType,
boolean bool,
Optional<Byte> optional) |
FindPointOfInterestTask(PointOfInterestType poiType,
MemoryModuleType<GlobalPos> memoryModuleType,
MemoryModuleType<GlobalPos> memoryModuleType2,
boolean bool,
Optional<Byte> optional) |
Modifier and Type | Method and Description |
---|---|
private static ImmutableMap<MemoryModuleType<?>,MemoryModuleState> |
method_29245(MemoryModuleType<GlobalPos> memoryModuleType,
MemoryModuleType<GlobalPos> memoryModuleType2) |
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 PointOfInterestType poiType
private final MemoryModuleType<GlobalPos> targetMemoryModuleType
private final boolean onlyRunIfChild
private long positionExpireTimeLimit
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<FindPointOfInterestTask.RetryMarker> foundPositionsToExpiry
public FindPointOfInterestTask(PointOfInterestType poiType, MemoryModuleType<GlobalPos> memoryModuleType, MemoryModuleType<GlobalPos> memoryModuleType2, boolean bool, Optional<Byte> optional)
public FindPointOfInterestTask(PointOfInterestType pointOfInterestType, MemoryModuleType<GlobalPos> memoryModuleType, boolean bool, Optional<Byte> optional)
private static ImmutableMap<MemoryModuleType<?>,MemoryModuleState> method_29245(MemoryModuleType<GlobalPos> memoryModuleType, MemoryModuleType<GlobalPos> memoryModuleType2)
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>