Class GoToIfNearbyTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.GoToIfNearbyTask
public class GoToIfNearbyTask 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 floatfield_25752private intmaxDistanceprivate longnextUpdateTimeprivate MemoryModuleType<GlobalPos>targetFields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates -
Constructor Summary
Constructors Constructor Description GoToIfNearbyTask(MemoryModuleType<GlobalPos> target, float float2, int int2) -
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
-
target
-
nextUpdateTime
private long nextUpdateTime -
maxDistance
private final int maxDistance -
field_25752
private final float field_25752
-
-
Constructor Details
-
GoToIfNearbyTask
-
-
Method Details
-
shouldRun
- Overrides:
shouldRunin classTask<PathAwareEntity>
-
run
- Overrides:
runin classTask<PathAwareEntity>
-