Package net.minecraft.pathfinding
Class PathFinder
- java.lang.Object
-
- net.minecraft.pathfinding.PathFinder
-
public class PathFinder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
maxVisitedNodes
private PathPoint[]
neighbors
private NodeProcessor
nodeEvaluator
private PathHeap
openSet
-
Constructor Summary
Constructors Constructor Description PathFinder(NodeProcessor p_i51280_1_, int p_i51280_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Path
findPath(PathPoint p_227479_1_, java.util.Map<FlaggedPathPoint,BlockPos> p_227479_2_, float p_227479_3_, int p_227479_4_, float p_227479_5_)
Path
findPath(Region p_227478_1_, MobEntity p_227478_2_, java.util.Set<BlockPos> p_227478_3_, float p_227478_4_, int p_227478_5_, float p_227478_6_)
private float
getBestH(PathPoint p_224776_1_, java.util.Set<FlaggedPathPoint> p_224776_2_)
private Path
reconstructPath(PathPoint p_224780_1_, BlockPos p_224780_2_, boolean p_224780_3_)
-
-
-
Field Detail
-
neighbors
private final PathPoint[] neighbors
-
maxVisitedNodes
private final int maxVisitedNodes
-
nodeEvaluator
private final NodeProcessor nodeEvaluator
-
openSet
private final PathHeap openSet
-
-
Constructor Detail
-
PathFinder
public PathFinder(NodeProcessor p_i51280_1_, int p_i51280_2_)
-
-
Method Detail
-
findPath
@Nullable public Path findPath(Region p_227478_1_, MobEntity p_227478_2_, java.util.Set<BlockPos> p_227478_3_, float p_227478_4_, int p_227478_5_, float p_227478_6_)
-
findPath
@Nullable private Path findPath(PathPoint p_227479_1_, java.util.Map<FlaggedPathPoint,BlockPos> p_227479_2_, float p_227479_3_, int p_227479_4_, float p_227479_5_)
-
getBestH
private float getBestH(PathPoint p_224776_1_, java.util.Set<FlaggedPathPoint> p_224776_2_)
-
-