Class Path

java.lang.Object
net.minecraft.pathfinding.Path

public class Path extends Object
  • Field Details

    • nodes

      private final List<PathPoint> nodes
    • openSet

      private PathPoint[] openSet
    • closedSet

      private PathPoint[] closedSet
    • targetNodes

      private Set<FlaggedPathPoint> targetNodes
    • nextNodeIndex

      private int nextNodeIndex
    • target

      private final BlockPos target
    • distToTarget

      private final float distToTarget
    • reached

      private final boolean reached
  • Constructor Details

  • Method Details

    • advance

      public void advance()
    • notStarted

      public boolean notStarted()
    • isDone

      public boolean isDone()
    • getEndNode

      @Nullable public PathPoint getEndNode()
    • getNode

      public PathPoint getNode(int p_75877_1_)
    • truncateNodes

      public void truncateNodes(int p_215747_1_)
    • replaceNode

      public void replaceNode(int p_186309_1_, PathPoint p_186309_2_)
    • getNodeCount

      public int getNodeCount()
    • getNextNodeIndex

      public int getNextNodeIndex()
    • setNextNodeIndex

      public void setNextNodeIndex(int p_75872_1_)
    • getEntityPosAtNode

      public Vector3d getEntityPosAtNode(Entity p_75881_1_, int p_75881_2_)
    • getNodePos

      public BlockPos getNodePos(int p_242947_1_)
    • getNextEntityPos

      public Vector3d getNextEntityPos(Entity p_75878_1_)
    • getNextNodePos

      public BlockPos getNextNodePos()
    • getNextNode

      public PathPoint getNextNode()
    • getPreviousNode

      @Nullable public PathPoint getPreviousNode()
    • sameAs

      public boolean sameAs(@Nullable Path p_75876_1_)
    • canReach

      public boolean canReach()
    • getOpenSet

      public PathPoint[] getOpenSet()
    • getClosedSet

      public PathPoint[] getClosedSet()
    • createFromStream

      public static Path createFromStream(PacketBuffer p_186311_0_)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTarget

      public BlockPos getTarget()
    • getDistToTarget

      public float getDistToTarget()