Class StayNearPointTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
-
- net.minecraft.entity.ai.brain.task.StayNearPointTask
-
public class StayNearPointTask 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 MemoryModuleType<GlobalPos>
memoryType
private float
speedModifier
private int
tooFarDistance
private int
tooLongUnreachableDuration
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description StayNearPointTask(MemoryModuleType<GlobalPos> p_i51501_1_, float p_i51501_2_, int p_i51501_3_, int p_i51501_4_, int p_i51501_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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 Detail
-
memoryType
private final MemoryModuleType<GlobalPos> memoryType
-
speedModifier
private final float speedModifier
-
closeEnoughDist
private final int closeEnoughDist
-
tooFarDistance
private final int tooFarDistance
-
tooLongUnreachableDuration
private final int tooLongUnreachableDuration
-
-
Constructor Detail
-
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 Detail
-
dropPOI
private void dropPOI(VillagerEntity p_225457_1_, long p_225457_2_)
-
start
protected void start(ServerWorld p_212831_1_, VillagerEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<VillagerEntity>
-
tiredOfTryingToFindTarget
private boolean tiredOfTryingToFindTarget(ServerWorld p_223017_1_, VillagerEntity p_223017_2_)
-
tooFar
private boolean tooFar(VillagerEntity p_242304_1_, GlobalPos p_242304_2_)
-
wrongDimension
private boolean wrongDimension(ServerWorld p_242303_1_, GlobalPos p_242303_2_)
-
closeEnough
private boolean closeEnough(ServerWorld p_220547_1_, VillagerEntity p_220547_2_, GlobalPos p_220547_3_)
-
-