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