net.minecraft.world.entity.ai.navigation

public abstract class PathNavigation

cfs
net.minecraft.world.entity.ai.navigation.PathNavigation
net.minecraft.class_1408
net.minecraft.unmapped.C_atbvfjwi
net.minecraft.entity.ai.pathing.EntityNavigation
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
f_cxhauzut
RECALCULATE_COOLDOWN
RECALCULATE_COOLDOWN
f_148217_
private static final int
q
STUCK_CHECK_INTERVAL
field_41545
f_zyochajd
field_41545
STUCK_CHECK_INTERVAL
f_262273_
private static final float
r
STUCK_THRESHOLD_DISTANCE_FACTOR
field_41546
f_kgulcrtt
field_41546
STUCK_THRESHOLD_DISTANCE_FACTOR
f_262292_
protected final Mob
a
mob
field_6684
f_ytabmjrn
entity
entity
f_26494_
protected final Level
b
level
field_6677
f_rkwefzxj
world
world
f_26495_
protected Path
c
path
field_6681
f_kygwztte
currentPath
currentPath
f_26496_
protected double
d
speedModifier
field_6668
f_ikowtixg
speed
speed
f_26497_
protected int
e
tick
field_6675
f_mhxwcgxe
tickCount
tickCount
f_26498_
protected int
f
lastStuckCheck
field_6674
f_amwjymxv
pathStartTime
pathStartTime
f_26499_
protected Vec3
g
lastStuckCheckPos
field_6672
f_nkeujvuw
pathStartPos
pathStartPos
f_26500_
protected Vec3i
h
timeoutCachedNode
field_6680
f_nvbuymci
lastNodePosition
lastNodePosition
f_26501_
protected long
i
timeoutTimer
field_6670
f_brqebarh
currentNodeMs
currentNodeMs
f_26502_
protected long
j
lastTimeoutCheck
field_6669
f_jpruxtyc
lastActiveTickMs
lastActiveTickMs
f_26503_
protected double
k
timeoutLimit
field_6682
f_jqnetjyj
currentNodeTimeout
currentNodeTimeout
f_26504_
protected float
l
maxDistanceToWaypoint
field_6683
f_ufulchda
nodeReachProximity
nodeReachProximity
f_26505_
protected boolean
m
hasDelayedRecomputation
field_6679
f_kwipzrjl
inRecalculationCooldown
shouldRecalculate
f_26506_
protected long
n
timeLastRecompute
field_6685
f_wcsndowi
lastRecalculateTime
lastRecalculateTime
f_26507_
protected NodeEvaluator
o
nodeEvaluator
field_6678
f_unngfiir
nodeMaker
nodeMaker
f_26508_
private BlockPos
s
targetPos
field_20293
f_pfbydgvo
currentTarget
currentTarget
f_26509_
private int
t
reachRange
field_20294
f_lcencwyr
currentDistance
currentDistance
f_26510_
private float
u
maxVisitedNodesMultiplier
field_21642
f_tppfywqo
rangeMultiplier
rangeMultiplier
f_26511_
private final PathFinder
v
pathFinder
field_6673
f_txxqiltu
pathNodeNavigator
pathNodeNavigator
f_26512_
private boolean
w
isStuck
field_26820
f_jdqfqfar
nearPathStartPos
nearPathStartPos
f_26513_
private float
x
requiredPathLength
field_52451
f_ywwuimtf
maxFollowRange
f_347178_

Constructor summary

ModifierConstructor
public (Mob entity, Level world)

Method summary

Modifier and TypeMethod
public void
g()
updatePathfinderMaxVisitedNodes()
method_61441()
m_mnymngdr()
updateRange()
m_352060_()
public void
a(float arg0)
setRequiredPathLength(float arg0)
method_61439(float arg0)
m_zojjqtnm(float arg0)
setMaxFollowRange(float maxFollowRange)
m_353938_(float arg0)
private float
e()
getMaxPathLength()
method_61440()
m_zexhlwxr()
getMaxFollowRange()
m_354400_()
public void
h()
resetMaxVisitedNodesMultiplier()
method_23965()
m_ifpmpvgl()
resetRangeMultiplier()
resetRangeMultiplier()
m_26566_()
public void
b(float arg0)
setMaxVisitedNodesMultiplier(float arg0)
method_23964(float arg0)
m_ptqkmccf(float arg0)
setRangeMultiplier(float rangeMultiplier)
setRangeMultiplier(float rangeMultiplier)
m_26529_(float arg0)
public BlockPos
i()
getTargetPos()
method_6355()
m_kqokxcfp()
getTargetPos()
getTargetPos()
m_26567_()
protected abstract PathFinder
a(int arg0)
createPathFinder(int arg0)
method_6336(int arg0)
m_rhavjrcm(int arg0)
createPathNodeNavigator(int range)
createPathNodeNavigator(int range)
m_5532_(int arg0)
public void
a(double arg0)
setSpeedModifier(double arg0)
method_6344(double arg0)
m_qetxokay(double arg0)
setSpeed(double speed)
setSpeed(double speed)
m_26517_(double arg0)
public void
j()
recomputePath()
method_6356()
m_ttwslddf()
recalculatePath()
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)
m_ejpbsjjw(double arg0, double arg1, double arg2, int arg3)
findPathTo(double x, double y, double z, int distance)
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<jh> arg0, int arg1)
createPath(Stream<BlockPos> arg0, int arg1)
method_21643(Stream<class_2338> arg0, int arg1)
m_njwmwegi(Stream<C_hynzadkk> arg0, int arg1)
findPathToAny(Stream<BlockPos> positions, int distance)
findPathToAny(Stream<BlockPos> positions, int distance)
m_26556_(Stream<C_4675_> p_26558_, int arg1)
public Path
a(Set<jh> arg0, int arg1)
createPath(Set<BlockPos> arg0, int arg1)
method_29934(Set<class_2338> arg0, int arg1)
m_pbnuucrt(Set<C_hynzadkk> arg0, int arg1)
findPathTo(Set<BlockPos> positions, int distance)
findPathTo(Set<BlockPos> positions, int distance)
m_26548_(Set<C_4675_> p_26550_, int arg1)
public Path
a(jh arg0, int arg1)
createPath(BlockPos arg0, int arg1)
method_6348(class_2338 arg0, int arg1)
m_kgklaorz(C_hynzadkk arg0, int arg1)
findPathTo(BlockPos target, int distance)
findPathTo(BlockPos target, int distance)
m_7864_(C_4675_ p_26547_, int arg1)
public Path
a(jh arg0, int arg1, int arg2)
createPath(BlockPos arg0, int arg1, int arg2)
method_35141(class_2338 arg0, int arg1, int arg2)
m_yfskjlsj(C_hynzadkk arg0, int arg1, int arg2)
findPathTo(BlockPos target, int minDistance, int maxDistance)
findPathTo(BlockPos target, int minDistance, int maxDistance)
m_148218_(C_4675_ p_148220_, int p_148221_, int arg2)
public Path
a(bvk arg0, int arg1)
createPath(Entity arg0, int arg1)
method_6349(class_1297 arg0, int arg1)
m_wuqknepy(C_astfners arg0, int arg1)
findPathTo(Entity entity, int distance)
findPathTo(Entity entity, int distance)
m_6570_(C_507_ p_26535_, int arg1)
protected Path
a(Set<jh> 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)
m_lvtpselx(Set<C_hynzadkk> arg0, int arg1, boolean arg2, int arg3)
findPathTo(Set<BlockPos> positions, int range, boolean useHeadPos, int distance)
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<jh> 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)
m_lhmnrubv(Set<C_hynzadkk> arg0, int arg1, boolean arg2, int arg3, float arg4)
findPathToAny(Set<BlockPos> positions, int range, boolean useHeadPos, int distance, float followRange)
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)
m_fgjhubhm(double arg0, double arg1, double arg2, double arg3)
startMovingTo(double x, double y, double z, double speed)
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)
m_tbseeosg(double arg0, double arg1, double arg2, int arg3, double arg4)
startMovingTo(double x, double y, double z, int distance, double speed)
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(bvk arg0, double arg1)
moveTo(Entity arg0, double arg1)
method_6335(class_1297 arg0, double arg1)
m_etdawgoe(C_astfners arg0, double arg1)
startMovingTo(Entity entity, double speed)
startMovingTo(Entity entity, double speed)
m_5624_(C_507_ p_26533_, double arg1)
public boolean
a(eul arg0, double arg1)
moveTo(Path arg0, double arg1)
method_6334(class_11 arg0, double arg1)
m_efjuxjgy(C_motipebf arg0, double arg1)
startMovingAlong(Path path, double speed)
startMovingAlong(Path path, double speed)
m_26536_(C_2753_ p_26538_, double arg1)
public Path
k()
getPath()
method_6345()
m_knkuewbd()
getCurrentPath()
getCurrentPath()
m_26570_()
public void
c()
tick()
method_6360()
m_yvxtcmyo()
tick()
tick()
m_7638_()
protected double
a(fby arg0)
getGroundY(Vec3 arg0)
method_38065(class_243 arg0)
m_zsklzyvc(C_vgpupfxx arg0)
adjustTargetY(Vec3d pos)
adjustTargetY(Vec3d pos)
m_183345_(C_3046_ arg0)
protected void
l()
followThePath()
method_6339()
m_imryvweo()
continueFollowingPath()
continueFollowingPath()
m_7636_()
private boolean
c(fby arg0)
shouldTargetNextNodeInDirection(Vec3 arg0)
method_27799(class_243 arg0)
m_shecbiuf(C_vgpupfxx arg0)
shouldJumpToNextNode(Vec3d currentPos)
shouldJumpToNextNode(Vec3d currentPos)
m_26559_(C_3046_ arg0)
protected void
b(fby arg0)
doStuckDetection(Vec3 arg0)
method_6346(class_243 arg0)
m_ectlsmwl(C_vgpupfxx arg0)
checkTimeouts(Vec3d currentPos)
checkTimeouts(Vec3d currentPos)
m_6481_(C_3046_ arg0)
private void
f()
timeoutPath()
method_31266()
m_nchaaiut()
resetNodeAndStop()
resetNodeAndStop()
m_26564_()
private void
t()
resetStuckTimeout()
method_26085()
m_cxhpxjch()
resetNode()
resetNode()
m_26565_()
public boolean
m()
isDone()
method_6357()
m_cuxkitjz()
isIdle()
isIdle()
m_26571_()
public boolean
n()
isInProgress()
method_23966()
m_eetwccfi()
isFollowingPath()
isFollowingPath()
m_26572_()
public void
o()
stop()
method_6340()
m_qkbmchty()
stop()
stop()
m_26573_()
protected abstract Vec3
b()
getTempMobPos()
method_6347()
m_tzgadsdi()
getPos()
getPos()
m_7475_()
protected abstract boolean
a()
canUpdatePath()
method_6358()
m_khhogyuw()
isAtValidPosition()
isAtValidPosition()
m_7632_()
protected void
W_()
trimPath()
method_6359()
m_piwnxgva()
adjustPath()
adjustPath()
m_6804_()
protected boolean
a(fby arg0, fby arg1)
canMoveDirectly(Vec3 arg0, Vec3 arg1)
method_6341(class_243 arg0, class_243 arg1)
m_bdwdpiwz(C_vgpupfxx arg0, C_vgpupfxx arg1)
canPathDirectlyThrough(Vec3d origin, Vec3d target)
canPathDirectlyThrough(Vec3d origin, Vec3d target)
m_183431_(C_3046_ p_186134_, C_3046_ arg1)
public boolean
b(euo arg0)
canCutCorner(PathType arg0)
method_48158(class_7 arg0)
m_rfnahbaw(C_hahxxnjs arg0)
canJumpToNext(PathNodeType nodeType)
canJumpToNext(PathNodeType type)
m_264193_(C_313716_ arg0)
protected static boolean
a(bwi arg0, fby arg1, fby 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)
m_ihvdiado(C_dxkfswlz arg0, C_vgpupfxx arg1, C_vgpupfxx arg2, boolean arg3)
doesNotCollide(MobEntity entity, Vec3d startPos, Vec3d entityPos, boolean includeFluids)
canPathDirectlyThrough(MobEntity entity, Vec3d origin, Vec3d target, boolean handleFluid)
m_262402_(C_526_ p_262599_, C_3046_ p_262674_, C_3046_ p_262586_, boolean p_262676_)
public boolean
a(jh arg0)
isStableDestination(BlockPos arg0)
method_6333(class_2338 arg0)
m_elrgnhgi(C_hynzadkk arg0)
isValidPosition(BlockPos pos)
isValidPosition(BlockPos pos)
m_6342_(C_4675_ arg0)
public NodeEvaluator
p()
getNodeEvaluator()
method_6342()
m_xfwbmcek()
getNodeMaker()
getNodeMaker()
m_26575_()
public void
a(boolean arg0)
setCanFloat(boolean arg0)
method_6354(boolean arg0)
m_zndcxdyx(boolean arg0)
setCanSwim(boolean canSwim)
setCanSwim(boolean canSwim)
m_7008_(boolean arg0)
public boolean
q()
canFloat()
method_6350()
m_ikygleej()
canSwim()
canSwim()
m_26576_()
public boolean
b(jh arg0)
shouldRecomputePath(BlockPos arg0)
method_18053(class_2338 arg0)
m_mvysdvtn(C_hynzadkk arg0)
shouldRecalculatePath(BlockPos pos)
shouldRecalculatePath(BlockPos pos)
m_200903_(C_4675_ arg0)
public float
r()
getMaxDistanceToWaypoint()
method_35143()
m_udhoaois()
getNodeReachProximity()
getNodeReachProximity()
m_148228_()
public boolean
s()
isStuck()
method_31267()
m_auxwhrju()
isNearPathStartPos()
isNearPathStartPos()
m_26577_()