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 classFindPointOfInterestTask.RetryMarkerNested 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_25812private Long2ObjectMap<FindPointOfInterestTask.RetryMarker>foundPositionsToExpiryprivate booleanonlyRunIfChildprivate PointOfInterestTypepoiTypeprivate longpositionExpireTimeLimitprivate MemoryModuleType<GlobalPos>targetMemoryModuleTypeFields 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 voidrun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)protected booleanshouldRun(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:
shouldRunin classTask<PathAwareEntity>
-
run
- Overrides:
runin classTask<PathAwareEntity>
-