Class WalkToTargetTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntity>
net.minecraft.entity.ai.brain.task.WalkToTargetTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerWorld p_212834_1_, MobEntity p_212834_2_, long p_212834_3_) protected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, MobEntity p_212832_2_) private boolean
reachedTarget
(MobEntity p_220486_1_, WalkTarget p_220486_2_) protected void
start
(ServerWorld p_212831_1_, MobEntity p_212831_2_, long p_212831_3_) protected void
stop
(ServerWorld p_212835_1_, MobEntity p_212835_2_, long p_212835_3_) protected void
tick
(ServerWorld p_212833_1_, MobEntity p_212833_2_, long p_212833_3_) private boolean
tryComputePath
(MobEntity p_220487_1_, WalkTarget p_220487_2_, long p_220487_3_)
-
Field Details
-
remainingCooldown
private int remainingCooldown -
path
-
lastTargetPos
-
speedModifier
private float speedModifier
-
-
Constructor Details
-
WalkToTargetTask
public WalkToTargetTask() -
WalkToTargetTask
public WalkToTargetTask(int p_i241908_1_, int p_i241908_2_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<MobEntity>
-
canStillUse
- Overrides:
canStillUse
in classTask<MobEntity>
-
stop
-
start
-
tick
-
tryComputePath
-
reachedTarget
-