net.minecraft.world.entity.ai.navigation

public abstract class PathNavigation

ceu
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.class_1408
net.minecraft.entity.ai.pathing.EntityNavigation
net.minecraft.world.entity.ai.navigation.NavigationAbstract

Field summary

Modifier and TypeField
private static final int
p
MAX_TIME_RECOMPUTE
field_30247
RECALCULATE_COOLDOWN
private static final int
q
STUCK_CHECK_INTERVAL
field_41545
field_41545
private static final float
r
STUCK_THRESHOLD_DISTANCE_FACTOR
field_41546
field_41546
protected final Mob
a
mob
field_6684
entity
protected final Level
b
level
field_6677
world
protected Path
c
path
field_6681
currentPath
protected double
d
speedModifier
field_6668
speed
protected int
e
tick
field_6675
tickCount
protected int
f
lastStuckCheck
field_6674
pathStartTime
protected Vec3
g
lastStuckCheckPos
field_6672
pathStartPos
protected Vec3i
h
timeoutCachedNode
field_6680
lastNodePosition
protected long
i
timeoutTimer
field_6670
currentNodeMs
protected long
j
lastTimeoutCheck
field_6669
lastActiveTickMs
protected double
k
timeoutLimit
field_6682
currentNodeTimeout
protected float
l
maxDistanceToWaypoint
field_6683
nodeReachProximity
protected boolean
m
hasDelayedRecomputation
field_6679
inRecalculationCooldown
protected long
n
timeLastRecompute
field_6685
lastRecalculateTime
protected NodeEvaluator
o
nodeEvaluator
field_6678
nodeMaker
private BlockPos
s
targetPos
field_20293
currentTarget
private int
t
reachRange
field_20294
currentDistance
private float
u
maxVisitedNodesMultiplier
field_21642
rangeMultiplier
private final PathFinder
v
pathFinder
field_6673
pathNodeNavigator
private boolean
w
isStuck
field_26820
nearPathStartPos
private float
x
requiredPathLength
field_52451
maxFollowRange

Constructor summary

ModifierConstructor
public (Mob entity, Level world)

Method summary

Modifier and TypeMethod
public void
e()
updatePathfinderMaxVisitedNodes()
method_61441()
updateRange()
public void
a(float arg0)
setRequiredPathLength(float arg0)
method_61439(float arg0)
setMaxFollowRange(float maxFollowRange)
private float
r()
getMaxPathLength()
method_61440()
getMaxFollowRange()
public void
f()
resetMaxVisitedNodesMultiplier()
method_23965()
resetRangeMultiplier()
public void
b(float arg0)
setMaxVisitedNodesMultiplier(float arg0)
method_23964(float arg0)
setRangeMultiplier(float rangeMultiplier)
public BlockPos
g()
getTargetPos()
method_6355()
getTargetPos()
protected abstract PathFinder
a(int arg0)
createPathFinder(int arg0)
method_6336(int arg0)
createPathNodeNavigator(int range)
public void
a(double arg0)
setSpeedModifier(double arg0)
method_6344(double arg0)
setSpeed(double speed)
public void
h()
recomputePath()
method_6356()
recalculatePath()
public final Path
a(double arg0, double arg1, double arg2, int arg3)
createPath(double arg0, double arg1, double arg2, int arg3)
method_6352(double arg0, double arg1, double arg2, int arg3)
findPathTo(double x, double y, double z, int distance)
public Path
a(Stream<ji> arg0, int arg1)
createPath(Stream<BlockPos> arg0, int arg1)
method_21643(Stream<class_2338> arg0, int arg1)
findPathToAny(Stream<BlockPos> positions, int distance)
public Path
a(Set<ji> arg0, int arg1)
createPath(Set<BlockPos> arg0, int arg1)
method_29934(Set<class_2338> arg0, int arg1)
findPathTo(Set<BlockPos> positions, int distance)
public Path
a(ji arg0, int arg1)
createPath(BlockPos arg0, int arg1)
method_6348(class_2338 arg0, int arg1)
findPathTo(BlockPos target, int distance)
public Path
a(ji arg0, int arg1, int arg2)
createPath(BlockPos arg0, int arg1, int arg2)
method_35141(class_2338 arg0, int arg1, int arg2)
findPathTo(BlockPos target, int minDistance, int maxDistance)
public Path
a(bum arg0, int arg1)
createPath(Entity arg0, int arg1)
method_6349(class_1297 arg0, int arg1)
findPathTo(Entity entity, int distance)
protected Path
a(Set<ji> arg0, int arg1, boolean arg2, int arg3)
createPath(Set<BlockPos> arg0, int arg1, boolean arg2, int arg3)
method_35142(Set<class_2338> arg0, int arg1, boolean arg2, int arg3)
findPathTo(Set<BlockPos> positions, int range, boolean useHeadPos, int distance)
protected Path
a(Set<ji> arg0, int arg1, boolean arg2, int arg3, float arg4)
createPath(Set<BlockPos> arg0, int arg1, boolean arg2, int arg3, float arg4)
method_18416(Set<class_2338> arg0, int arg1, boolean arg2, int arg3, float arg4)
findPathToAny(Set<BlockPos> positions, int range, boolean useHeadPos, int distance, float followRange)
public boolean
a(double arg0, double arg1, double arg2, double arg3)
moveTo(double arg0, double arg1, double arg2, double arg3)
method_6337(double arg0, double arg1, double arg2, double arg3)
startMovingTo(double x, double y, double z, double speed)
public boolean
a(double arg0, double arg1, double arg2, int arg3, double arg4)
moveTo(double arg0, double arg1, double arg2, int arg3, double arg4)
method_58160(double arg0, double arg1, double arg2, int arg3, double arg4)
startMovingTo(double x, double y, double z, int distance, double speed)
public boolean
a(bum arg0, double arg1)
moveTo(Entity arg0, double arg1)
method_6335(class_1297 arg0, double arg1)
startMovingTo(Entity entity, double speed)
public boolean
a(eto arg0, double arg1)
moveTo(Path arg0, double arg1)
method_6334(class_11 arg0, double arg1)
startMovingAlong(Path path, double speed)
public Path
i()
getPath()
method_6345()
getCurrentPath()
public void
c()
tick()
method_6360()
tick()
protected double
a(fbb arg0)
getGroundY(Vec3 arg0)
method_38065(class_243 arg0)
adjustTargetY(Vec3d pos)
protected void
j()
followThePath()
method_6339()
continueFollowingPath()
private boolean
c(fbb arg0)
shouldTargetNextNodeInDirection(Vec3 arg0)
method_27799(class_243 arg0)
shouldJumpToNextNode(Vec3d currentPos)
protected void
b(fbb arg0)
doStuckDetection(Vec3 arg0)
method_6346(class_243 arg0)
checkTimeouts(Vec3d currentPos)
private void
s()
timeoutPath()
method_31266()
resetNodeAndStop()
private void
t()
resetStuckTimeout()
method_26085()
resetNode()
public boolean
k()
isDone()
method_6357()
isIdle()
public boolean
l()
isInProgress()
method_23966()
isFollowingPath()
public void
m()
stop()
method_6340()
stop()
protected abstract Vec3
b()
getTempMobPos()
method_6347()
getPos()
protected abstract boolean
a()
canUpdatePath()
method_6358()
isAtValidPosition()
protected void
d()
trimPath()
method_6359()
adjustPath()
protected boolean
a(fbb arg0, fbb arg1)
canMoveDirectly(Vec3 arg0, Vec3 arg1)
method_6341(class_243 arg0, class_243 arg1)
canPathDirectlyThrough(Vec3d origin, Vec3d target)
public boolean
b(etr arg0)
canCutCorner(PathType arg0)
method_48158(class_7 arg0)
canJumpToNext(PathNodeType nodeType)
protected static boolean
a(bvk arg0, fbb arg1, fbb arg2, boolean arg3)
isClearForMovementBetween(Mob arg0, Vec3 arg1, Vec3 arg2, boolean arg3)
method_43394(class_1308 arg0, class_243 arg1, class_243 arg2, boolean arg3)
doesNotCollide(MobEntity entity, Vec3d startPos, Vec3d entityPos, boolean includeFluids)
public boolean
a(ji arg0)
isStableDestination(BlockPos arg0)
method_6333(class_2338 arg0)
isValidPosition(BlockPos pos)
public NodeEvaluator
n()
getNodeEvaluator()
method_6342()
getNodeMaker()
public void
a(boolean arg0)
setCanFloat(boolean arg0)
method_6354(boolean arg0)
setCanSwim(boolean canSwim)
public boolean
o()
canFloat()
method_6350()
canSwim()
public boolean
b(ji arg0)
shouldRecomputePath(BlockPos arg0)
method_18053(class_2338 arg0)
shouldRecalculatePath(BlockPos pos)
public float
p()
getMaxDistanceToWaypoint()
method_35143()
getNodeReachProximity()
public boolean
q()
isStuck()
method_31267()
isNearPathStartPos()