Class GoToNearbyPositionTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.GoToNearbyPositionTask
public class GoToNearbyPositionTask extends Task<PathAwareEntity>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status -
Field Summary
Fields Modifier and Type Field Description private intcompletionRangeprivate floatfield_25753private intmaxDistanceprivate MemoryModuleType<GlobalPos>memoryModuleTypeprivate longnextRunTimeFields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates -
Constructor Summary
Constructors Constructor Description GoToNearbyPositionTask(MemoryModuleType<GlobalPos> memoryModuleType, float float2, int int2, int int3) -
Method Summary
Modifier and Type Method Description 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
-
memoryModuleType
-
completionRange
private final int completionRange -
maxDistance
private final int maxDistance -
field_25753
private final float field_25753 -
nextRunTime
private long nextRunTime
-
-
Constructor Details
-
GoToNearbyPositionTask
public GoToNearbyPositionTask(MemoryModuleType<GlobalPos> memoryModuleType, float float2, int int2, int int3)
-
-
Method Details
-
shouldRun
- Overrides:
shouldRunin classTask<PathAwareEntity>
-
run
- Overrides:
runin classTask<PathAwareEntity>
-