net.minecraft.world.entity.ai.navigation

public abstract class PathNavigation

cdd
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.class_1408
net.minecraft.entity.ai.pathing.EntityNavigation
net.minecraft.src.C_758_
net.minecraft.world.entity.ai.navigation.NavigationAbstract

Field summary

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

Constructor summary

ModifierConstructor
public (Mob entity, Level world)

Method summary

Modifier and TypeMethod
public void
g()
resetMaxVisitedNodesMultiplier()
method_23965()
resetRangeMultiplier()
m_26566_()
public void
a(float arg0)
setMaxVisitedNodesMultiplier(float arg0)
method_23964(float arg0)
setRangeMultiplier(float rangeMultiplier)
m_26529_(float arg0)
public BlockPos
h()
getTargetPos()
method_6355()
getTargetPos()
m_26567_()
protected abstract PathFinder
a(int arg0)
createPathFinder(int arg0)
method_6336(int arg0)
createPathNodeNavigator(int range)
m_5532_(int arg0)
public void
a(double arg0)
setSpeedModifier(double arg0)
method_6344(double arg0)
setSpeed(double speed)
m_26517_(double arg0)
public void
i()
recomputePath()
method_6356()
recalculatePath()
m_26569_()
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)
m_26524_(double p_26526_, double p_26528_, double arg2, int arg3)
public Path
a(Stream<iz> arg0, int arg1)
createPath(Stream<BlockPos> arg0, int arg1)
method_21643(Stream<class_2338> arg0, int arg1)
findPathToAny(Stream<BlockPos> positions, int distance)
m_26556_(Stream<C_4675_> p_26558_, int arg1)
public Path
a(Set<iz> arg0, int arg1)
createPath(Set<BlockPos> arg0, int arg1)
method_29934(Set<class_2338> arg0, int arg1)
findPathTo(Set<BlockPos> positions, int distance)
m_26548_(Set<C_4675_> p_26550_, int arg1)
public Path
a(iz arg0, int arg1)
createPath(BlockPos arg0, int arg1)
method_6348(class_2338 arg0, int arg1)
findPathTo(BlockPos target, int distance)
m_7864_(C_4675_ p_26547_, int arg1)
public Path
a(iz 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)
m_148218_(C_4675_ p_148220_, int p_148221_, int arg2)
public Path
a(bsw arg0, int arg1)
createPath(Entity arg0, int arg1)
method_6349(class_1297 arg0, int arg1)
findPathTo(Entity entity, int distance)
m_6570_(C_507_ p_26535_, int arg1)
protected Path
a(Set<iz> 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)
m_26551_(Set<C_4675_> p_26553_, int p_26554_, boolean p_26555_, int arg3)
protected Path
a(Set<iz> 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)
m_148222_(Set<C_4675_> p_148224_, int p_148225_, boolean p_148226_, int p_148227_, float arg4)
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)
m_26519_(double p_26521_, double p_26523_, double arg2, double arg3)
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)
m_322222_(double p_329397_, double p_329667_, double arg2, int arg3, double arg4)
public boolean
a(bsw arg0, double arg1)
moveTo(Entity arg0, double arg1)
method_6335(class_1297 arg0, double arg1)
startMovingTo(Entity entity, double speed)
m_5624_(C_507_ p_26533_, double arg1)
public boolean
a(eol arg0, double arg1)
moveTo(Path arg0, double arg1)
method_6334(class_11 arg0, double arg1)
startMovingAlong(Path path, double speed)
m_26536_(C_2753_ p_26538_, double arg1)
public Path
j()
getPath()
method_6345()
getCurrentPath()
m_26570_()
public void
c()
tick()
method_6360()
tick()
m_7638_()
protected double
a(evt arg0)
getGroundY(Vec3 arg0)
method_38065(class_243 arg0)
adjustTargetY(Vec3d pos)
m_183345_(C_3046_ arg0)
protected void
k()
followThePath()
method_6339()
continueFollowingPath()
m_7636_()
private boolean
c(evt arg0)
shouldTargetNextNodeInDirection(Vec3 arg0)
method_27799(class_243 arg0)
shouldJumpToNextNode(Vec3d currentPos)
m_26559_(C_3046_ arg0)
protected void
b(evt arg0)
doStuckDetection(Vec3 arg0)
method_6346(class_243 arg0)
checkTimeouts(Vec3d currentPos)
m_6481_(C_3046_ arg0)
private void
e()
timeoutPath()
method_31266()
resetNodeAndStop()
m_26564_()
private void
f()
resetStuckTimeout()
method_26085()
resetNode()
m_26565_()
public boolean
l()
isDone()
method_6357()
isIdle()
m_26571_()
public boolean
m()
isInProgress()
method_23966()
isFollowingPath()
m_26572_()
public void
n()
stop()
method_6340()
stop()
m_26573_()
protected abstract Vec3
b()
getTempMobPos()
method_6347()
getPos()
m_7475_()
protected abstract boolean
a()
canUpdatePath()
method_6358()
isAtValidPosition()
m_7632_()
protected void
S_()
trimPath()
method_6359()
adjustPath()
m_6804_()
protected boolean
a(evt arg0, evt arg1)
canMoveDirectly(Vec3 arg0, Vec3 arg1)
method_6341(class_243 arg0, class_243 arg1)
canPathDirectlyThrough(Vec3d origin, Vec3d target)
m_183431_(C_3046_ p_186134_, C_3046_ arg1)
public boolean
b(eoo arg0)
canCutCorner(PathType arg0)
method_48158(class_7 arg0)
canJumpToNext(PathNodeType nodeType)
m_264193_(C_313716_ arg0)
protected static boolean
a(btt arg0, evt arg1, evt 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)
m_262402_(C_526_ p_262599_, C_3046_ p_262674_, C_3046_ p_262586_, boolean p_262676_)
public boolean
a(iz arg0)
isStableDestination(BlockPos arg0)
method_6333(class_2338 arg0)
isValidPosition(BlockPos pos)
m_6342_(C_4675_ arg0)
public NodeEvaluator
o()
getNodeEvaluator()
method_6342()
getNodeMaker()
m_26575_()
public void
a(boolean arg0)
setCanFloat(boolean arg0)
method_6354(boolean arg0)
setCanSwim(boolean canSwim)
m_7008_(boolean arg0)
public boolean
p()
canFloat()
method_6350()
canSwim()
m_26576_()
public boolean
b(iz arg0)
shouldRecomputePath(BlockPos arg0)
method_18053(class_2338 arg0)
shouldRecalculatePath(BlockPos pos)
m_200903_(C_4675_ arg0)
public float
q()
getMaxDistanceToWaypoint()
method_35143()
getNodeReachProximity()
m_148228_()
public boolean
r()
isStuck()
method_31267()
isNearPathStartPos()
m_26577_()