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 inthorizontalRadiusprivate floatspeedprivate intverticalRadiusFields 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 voidrun(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:
runin classTask<PathAwareEntity>
-