public class FindPointOfInterestTask extends Task<MobEntityWithAi>
Task.Status
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.longs.Long2LongMap |
foundPositionsToExpiry |
private boolean |
onlyRunIfChild |
private PointOfInterestType |
poiType |
private long |
positionExpireTimeLimit |
private MemoryModuleType<GlobalPos> |
targetMemoryModuleType |
private int |
tries |
requiredMemoryStates
Constructor and Description |
---|
FindPointOfInterestTask(PointOfInterestType poiType,
MemoryModuleType<GlobalPos> targetMemoryModule,
boolean onlyRunIfChild) |
Modifier and Type | Method and Description |
---|---|
protected void |
run(ServerWorld serverWorld,
MobEntityWithAi mobEntityWithAi,
long long2) |
protected boolean |
shouldRun(ServerWorld serverWorld,
MobEntityWithAi mobEntityWithAi) |
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.Long2LongMap foundPositionsToExpiry
private int tries
public FindPointOfInterestTask(PointOfInterestType poiType, MemoryModuleType<GlobalPos> targetMemoryModule, boolean onlyRunIfChild)
protected boolean shouldRun(ServerWorld serverWorld, MobEntityWithAi mobEntityWithAi)
shouldRun
in class Task<MobEntityWithAi>
protected void run(ServerWorld serverWorld, MobEntityWithAi mobEntityWithAi, long long2)
run
in class Task<MobEntityWithAi>