Class PathFinder
java.lang.Object
net.minecraft.world.level.pathfinder.PathFinder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final boolean
private static final float
private final int
private final Node[]
private final NodeEvaluator
private final BinaryHeap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected float
private Path
findPath
(ProfilerFiller pProfiler, Node pNode, Map<Target, BlockPos> pTargetPos, float pMaxRange, int pAccuracy, float pSearchDepthMultiplier) findPath
(PathNavigationRegion pRegion, Mob pMob, Set<BlockPos> pTargetPositions, float pMaxRange, int pAccuracy, float pSearchDepthMultiplier) Finds a path to one of the specified positions and post-processes it or returns null if no path could be found within given accuracyprivate float
private Path
reconstructPath
(Node pPoint, BlockPos pTargetPos, boolean pReachesTarget) Converts a recursive path point structure into a path
-
Field Details
-
FUDGING
private static final float FUDGING- See Also:
-
neighbors
-
maxVisitedNodes
private final int maxVisitedNodes -
nodeEvaluator
-
DEBUG
private static final boolean DEBUG- See Also:
-
openSet
-
-
Constructor Details
-
PathFinder
-
-
Method Details
-
findPath
-
distance
-
getBestH
-
reconstructPath
Converts a recursive path point structure into a path