Class WalkTowardsRandomSecondaryPosTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.WalkTowardsRandomSecondaryPosTask
-
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
private final MemoryModuleType<List<GlobalPos>>
private GlobalPos
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionWalkTowardsRandomSecondaryPosTask
(MemoryModuleType<List<GlobalPos>> p_i50340_1_, float p_i50340_2_, int p_i50340_3_, int p_i50340_4_, MemoryModuleType<GlobalPos> p_i50340_5_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, VillagerEntity p_212832_2_) protected void
start
(ServerWorld p_212831_1_, VillagerEntity 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
-
strollToMemoryType
-
mustBeCloseToMemoryType
-
speedModifier
private final float speedModifier -
closeEnoughDist
private final int closeEnoughDist -
maxDistanceFromPoi
private final int maxDistanceFromPoi -
nextOkStartTime
private long nextOkStartTime -
targetPos
-
-
Constructor Details
-
WalkTowardsRandomSecondaryPosTask
public WalkTowardsRandomSecondaryPosTask(MemoryModuleType<List<GlobalPos>> p_i50340_1_, float p_i50340_2_, int p_i50340_3_, int p_i50340_4_, MemoryModuleType<GlobalPos> p_i50340_5_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<VillagerEntity>
-
start
- Overrides:
start
in classTask<VillagerEntity>
-