Class SetWalkTargetFromBlockMemory
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.SetWalkTargetFromBlockMemory
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private MemoryModuleType<GlobalPos>
private float
private int
private int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
ConstructorDescriptionSetWalkTargetFromBlockMemory(MemoryModuleType<GlobalPos> p_24046_, float p_24047_, int p_24048_, int p_24049_, int p_24050_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
closeEnough(ServerLevel p_24069_, Villager p_24070_, GlobalPos p_24071_)
private void
protected void
start(ServerLevel p_24059_, Villager p_24060_, long p_24061_)
private boolean
tiredOfTryingToFindTarget(ServerLevel p_24056_, Villager p_24057_)
private boolean
private boolean
wrongDimension(ServerLevel p_24073_, GlobalPos p_24074_)
Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
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
-
SetWalkTargetFromBlockMemory
public SetWalkTargetFromBlockMemory(MemoryModuleType<GlobalPos> p_24046_, float p_24047_, int p_24048_, int p_24049_, int p_24050_)
-
-
Method Details