Class WalkTowardsPosTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<CreatureEntity>
net.minecraft.entity.ai.brain.task.WalkTowardsPosTask
-
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 MemoryModuleType<GlobalPos>
private long
private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionWalkTowardsPosTask
(MemoryModuleType<GlobalPos> p_i241910_1_, float p_i241910_2_, int p_i241910_3_, int p_i241910_4_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, CreatureEntity p_212832_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, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
memoryType
-
closeEnoughDist
private final int closeEnoughDist -
maxDistanceFromPoi
private final int maxDistanceFromPoi -
speedModifier
private final float speedModifier -
nextOkStartTime
private long nextOkStartTime
-
-
Constructor Details
-
WalkTowardsPosTask
public WalkTowardsPosTask(MemoryModuleType<GlobalPos> p_i241910_1_, float p_i241910_2_, int p_i241910_3_, int p_i241910_4_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<CreatureEntity>
-
start
- Overrides:
start
in classTask<CreatureEntity>
-