Class StrollTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.StrollTask
- Direct Known Subclasses:
class_5755
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 protected inthorizontalRadiusprivate floatspeedprotected 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 Vec3dmethod_33201(PathAwareEntity pathAwareEntity)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
protected final int horizontalRadius -
verticalRadius
protected 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>
-
method_33201
-