类 PathFinder

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

public class PathFinder extends Object
  • 字段详细资料

    • FUDGING

      private static final float FUDGING
      另请参阅:
    • neighbors

      private final Node[] neighbors
    • maxVisitedNodes

      private int maxVisitedNodes
    • nodeEvaluator

      private final NodeEvaluator nodeEvaluator
    • DEBUG

      private static final boolean DEBUG
      另请参阅:
    • openSet

      private final BinaryHeap openSet
  • 构造器详细资料

    • PathFinder

      public PathFinder(NodeEvaluator p_77425_, int p_77426_)
  • 方法详细资料

    • setMaxVisitedNodes

      public void setMaxVisitedNodes(int p_364339_)
    • 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(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_)