Class StrollTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.StrollTask
public class StrollTask 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 int
horizontalRadius
private float
speed
private int
verticalRadius
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description StrollTask(float speed)
StrollTask(float speed, int horizontalRadius, int verticalRadius)
-
Method Summary
Modifier and Type Method Description protected void
run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
Field Details
-
speed
private final float speed -
horizontalRadius
private final int horizontalRadius -
verticalRadius
private final int verticalRadius
-
-
Constructor Details
-
StrollTask
public StrollTask(float speed) -
StrollTask
public StrollTask(float speed, int horizontalRadius, int verticalRadius)
-
-
Method Details
-
run
- Overrides:
run
in classTask<PathAwareEntity>
-