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 float
field_25752
private int
maxDistance
private long
nextUpdateTime
private MemoryModuleType<GlobalPos>
target
Fields 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 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
-
target
-
nextUpdateTime
private long nextUpdateTime -
maxDistance
private final int maxDistance -
field_25752
private float field_25752
-
-
Constructor Details
-
GoToIfNearbyTask
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<PathAwareEntity>
-
run
- Overrides:
run
in classTask<PathAwareEntity>
-