Class WalkRandomlyTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<CreatureEntity>
net.minecraft.entity.ai.brain.task.WalkRandomlyTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionWalkRandomlyTask
(float p_i231526_1_) WalkRandomlyTask
(float p_i231527_1_, int p_i231527_2_, int p_i231527_3_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
start
(ServerWorld p_212831_1_, CreatureEntity p_212831_2_, long p_212831_3_) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, checkExtraStartConditions, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
speedModifier
private final float speedModifier -
maxHorizontalDistance
private final int maxHorizontalDistance -
maxVerticalDistance
private final int maxVerticalDistance
-
-
Constructor Details
-
WalkRandomlyTask
public WalkRandomlyTask(float p_i231526_1_) -
WalkRandomlyTask
public WalkRandomlyTask(float p_i231527_1_, int p_i231527_2_, int p_i231527_3_)
-
-
Method Details
-
start
- Overrides:
start
in classTask<CreatureEntity>
-