Class PathFinder

java.lang.Object
net.minecraft.world.level.pathfinder.PathFinder

public class PathFinder extends Object
  • Field Details

    • FUDGING

      private static final float FUDGING
      See Also:
    • neighbors

      private final Node[] neighbors
    • maxVisitedNodes

      private final int maxVisitedNodes
    • nodeEvaluator

      private final NodeEvaluator nodeEvaluator
    • DEBUG

      private static final boolean DEBUG
      See Also:
    • openSet

      private final BinaryHeap openSet
  • Constructor Details

    • PathFinder

      public PathFinder(NodeEvaluator p_77425_, int p_77426_)
  • Method Details

    • findPath

      @Nullable public Path findPath(PathNavigationRegion p_77428_, Mob p_77429_, Set<BlockPos> p_77430_, float p_77431_, int p_77432_, float p_77433_)
    • findPath

      @Nullable private Path findPath(ProfilerFiller p_164717_, Node p_164718_, Map<Target,BlockPos> p_164719_, float p_164720_, int p_164721_, float p_164722_)
    • distance

      protected float distance(Node p_230617_, Node p_230618_)
    • getBestH

      private float getBestH(Node p_77445_, Set<Target> p_77446_)
    • reconstructPath

      private Path reconstructPath(Node p_77435_, BlockPos p_77436_, boolean p_77437_)