Package net.minecraft.pathfinding
Class PathFinder
java.lang.Object
net.minecraft.pathfinding.PathFinder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final PathPoint[]
private final NodeProcessor
private final PathHeap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Path
findPath
(PathPoint p_227479_1_, Map<FlaggedPathPoint, BlockPos> p_227479_2_, float p_227479_3_, int p_227479_4_, float p_227479_5_) findPath
(Region p_227478_1_, MobEntity p_227478_2_, Set<BlockPos> p_227478_3_, float p_227478_4_, int p_227478_5_, float p_227478_6_) private float
getBestH
(PathPoint p_224776_1_, Set<FlaggedPathPoint> p_224776_2_) private Path
reconstructPath
(PathPoint p_224780_1_, BlockPos p_224780_2_, boolean p_224780_3_)
-
Field Details
-
neighbors
-
maxVisitedNodes
private final int maxVisitedNodes -
nodeEvaluator
-
openSet
-
-
Constructor Details
-
PathFinder
-
-
Method Details
-
findPath
-
findPath
@Nullable private Path findPath(PathPoint p_227479_1_, Map<FlaggedPathPoint, BlockPos> p_227479_2_, float p_227479_3_, int p_227479_4_, float p_227479_5_) -
getBestH
-
reconstructPath
-