Class FindWalkTargetTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<CreatureEntity>
-
- net.minecraft.entity.ai.brain.task.FindWalkTargetTask
-
- Direct Known Subclasses:
FindWalkTargetAfterRaidVictoryTask
public class FindWalkTargetTask extends Task<CreatureEntity>
-
-
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
maxXyDist
private int
maxYDist
private float
speedModifier
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description FindWalkTargetTask(float p_i50336_1_)
FindWalkTargetTask(float p_i51526_1_, int p_i51526_2_, int p_i51526_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
setRandomPos(CreatureEntity p_220593_1_)
private void
setTargetedPos(CreatureEntity p_220594_1_, SectionPos p_220594_2_)
protected 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
-
-
-
-
Method Detail
-
start
protected void start(ServerWorld p_212831_1_, CreatureEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<CreatureEntity>
-
setTargetedPos
private void setTargetedPos(CreatureEntity p_220594_1_, SectionPos p_220594_2_)
-
setRandomPos
private void setRandomPos(CreatureEntity p_220593_1_)
-
-