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 profiler, Node p_node, Map<Target, BlockPos> targetPos, float maxRange, int accuracy, float searchDepthMultiplier) findPath
(PathNavigationRegion region, Mob mob, Set<BlockPos> targetPositions, float maxRange, int accuracy, float searchDepthMultiplier) 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 point, BlockPos targetPos, boolean reachesTarget) 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