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 Modifier and Type Field Description private BlockPos
lastTargetPos
private Path
path
private int
remainingCooldown
private float
speedModifier
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description WalkToTargetTask()
WalkToTargetTask(int p_i241908_1_, int p_i241908_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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_)
-
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, MobEntity p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<MobEntity>
-
canStillUse
protected boolean canStillUse(ServerWorld p_212834_1_, MobEntity p_212834_2_, long p_212834_3_)
- Overrides:
canStillUse
in classTask<MobEntity>
-
stop
protected void stop(ServerWorld p_212835_1_, MobEntity p_212835_2_, long p_212835_3_)
-
start
protected void start(ServerWorld p_212831_1_, MobEntity p_212831_2_, long p_212831_3_)
-
tick
protected void tick(ServerWorld p_212833_1_, MobEntity p_212833_2_, long p_212833_3_)
-
tryComputePath
private boolean tryComputePath(MobEntity p_220487_1_, WalkTarget p_220487_2_, long p_220487_3_)
-
reachedTarget
private boolean reachedTarget(MobEntity p_220486_1_, WalkTarget p_220486_2_)
-
-