Class StayNearPointTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.StayNearPointTask
-
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 MemoryModuleType<GlobalPos>
private final float
private final int
private final int
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionStayNearPointTask
(MemoryModuleType<GlobalPos> p_i51501_1_, float p_i51501_2_, int p_i51501_3_, int p_i51501_4_, int p_i51501_5_) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
closeEnough
(ServerWorld p_220547_1_, VillagerEntity p_220547_2_, GlobalPos p_220547_3_) private void
dropPOI
(VillagerEntity p_225457_1_, long p_225457_2_) protected void
start
(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_) private boolean
tiredOfTryingToFindTarget
(ServerWorld p_223017_1_, VillagerEntity p_223017_2_) private boolean
tooFar
(VillagerEntity p_242304_1_, GlobalPos p_242304_2_) private boolean
wrongDimension
(ServerWorld p_242303_1_, GlobalPos p_242303_2_) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, checkExtraStartConditions, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
memoryType
-
speedModifier
private final float speedModifier -
closeEnoughDist
private final int closeEnoughDist -
tooFarDistance
private final int tooFarDistance -
tooLongUnreachableDuration
private final int tooLongUnreachableDuration
-
-
Constructor Details
-
StayNearPointTask
public StayNearPointTask(MemoryModuleType<GlobalPos> p_i51501_1_, float p_i51501_2_, int p_i51501_3_, int p_i51501_4_, int p_i51501_5_)
-
-
Method Details
-
dropPOI
-
start
- Overrides:
start
in classTask<VillagerEntity>
-
tiredOfTryingToFindTarget
-
tooFar
-
wrongDimension
-
closeEnough
private boolean closeEnough(ServerWorld p_220547_1_, VillagerEntity p_220547_2_, GlobalPos p_220547_3_)
-