Class FindWalkTargetTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<CreatureEntity>
net.minecraft.entity.ai.brain.task.FindWalkTargetTask
- Direct Known Subclasses:
FindWalkTargetAfterRaidVictoryTask
-
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
ConstructorDescriptionFindWalkTargetTask
(float p_i50336_1_) FindWalkTargetTask
(float p_i51526_1_, int p_i51526_2_, int p_i51526_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate 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
-
Field Details
-
speedModifier
private final float speedModifier -
maxXyDist
private final int maxXyDist -
maxYDist
private final int maxYDist
-
-
Constructor Details
-
FindWalkTargetTask
public FindWalkTargetTask(float p_i50336_1_) -
FindWalkTargetTask
public FindWalkTargetTask(float p_i51526_1_, int p_i51526_2_, int p_i51526_3_)
-
-
Method Details
-
start
- Overrides:
start
in classTask<CreatureEntity>
-
setTargetedPos
-
setRandomPos
-