Class MoveToTargetTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<MobEntity>
-
- net.minecraft.entity.ai.brain.task.MoveToTargetTask
-
-
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 float
speedModifier
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description MoveToTargetTask(float p_i231534_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
clearWalkTarget(LivingEntity p_233967_1_)
private void
setWalkAndLookTarget(LivingEntity p_233968_1_, LivingEntity p_233968_2_)
protected void
start(ServerWorld p_212831_1_, MobEntity 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_, MobEntity p_212831_2_, long p_212831_3_)
-
setWalkAndLookTarget
private void setWalkAndLookTarget(LivingEntity p_233968_1_, LivingEntity p_233968_2_)
-
clearWalkTarget
private void clearWalkTarget(LivingEntity p_233967_1_)
-
-