Class WalkTowardsPosTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<CreatureEntity>
-
- net.minecraft.entity.ai.brain.task.WalkTowardsPosTask
-
public class WalkTowardsPosTask extends Task<CreatureEntity>
-
-
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 int
closeEnoughDist
private int
maxDistanceFromPoi
private MemoryModuleType<GlobalPos>
memoryType
private long
nextOkStartTime
private float
speedModifier
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description WalkTowardsPosTask(MemoryModuleType<GlobalPos> p_i241910_1_, float p_i241910_2_, int p_i241910_3_, int p_i241910_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
memoryType
private final MemoryModuleType<GlobalPos> memoryType
-
closeEnoughDist
private final int closeEnoughDist
-
maxDistanceFromPoi
private final int maxDistanceFromPoi
-
speedModifier
private final float speedModifier
-
nextOkStartTime
private long nextOkStartTime
-
-
Constructor Detail
-
WalkTowardsPosTask
public WalkTowardsPosTask(MemoryModuleType<GlobalPos> p_i241910_1_, float p_i241910_2_, int p_i241910_3_, int p_i241910_4_)
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, CreatureEntity p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<CreatureEntity>
-
start
protected void start(ServerWorld p_212831_1_, CreatureEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<CreatureEntity>
-
-