Class Path


  • public class Path
    extends java.lang.Object
    • Field Detail

      • nodes

        private final java.util.List<PathPoint> nodes
      • nextNodeIndex

        private int nextNodeIndex
      • distToTarget

        private final float distToTarget
      • reached

        private final boolean reached
    • Constructor Detail

      • Path

        public Path​(java.util.List<PathPoint> p_i51804_1_,
                    BlockPos p_i51804_2_,
                    boolean p_i51804_3_)
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getTarget

        public BlockPos getTarget()
      • getDistToTarget

        public float getDistToTarget()