Class FindPointOfInterestTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.FindPointOfInterestTask
public class FindPointOfInterestTask extends Task<PathAwareEntity>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
FindPointOfInterestTask.RetryMarker
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description private Optional<Byte>
field_25812
private Long2ObjectMap<FindPointOfInterestTask.RetryMarker>
foundPositionsToExpiry
private boolean
onlyRunIfChild
private PointOfInterestType
poiType
private long
positionExpireTimeLimit
private MemoryModuleType<GlobalPos>
targetMemoryModuleType
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
poiType
-
targetMemoryModuleType
-
onlyRunIfChild
private final boolean onlyRunIfChild -
field_25812
-
positionExpireTimeLimit
private long positionExpireTimeLimit -
foundPositionsToExpiry
-
-
Constructor Details
-
FindPointOfInterestTask
public FindPointOfInterestTask(PointOfInterestType poiType, MemoryModuleType<GlobalPos> memoryModuleType, MemoryModuleType<GlobalPos> memoryModuleType2, boolean bool, Optional<Byte> optional) -
FindPointOfInterestTask
public FindPointOfInterestTask(PointOfInterestType pointOfInterestType, MemoryModuleType<GlobalPos> memoryModuleType, boolean bool, Optional<Byte> optional)
-
-
Method Details
-
method_29245
private static ImmutableMap<MemoryModuleType<?>,MemoryModuleState> method_29245(MemoryModuleType<GlobalPos> memoryModuleType, MemoryModuleType<GlobalPos> memoryModuleType2) -
shouldRun
- Overrides:
shouldRun
in classTask<PathAwareEntity>
-
run
- Overrides:
run
in classTask<PathAwareEntity>
-