Class WaypointPath

  • All Implemented Interfaces:
    Renderable

    public class WaypointPath
    extends Path
    A predefined list of coordinates to use as waypoints to traverse through while doing long-distance navigation.

    Similar in nature to PredefinedPath but is intended to have significantly fewer coordinates defined and for each Coordinate to be spaced out much further.

    • Method Detail

      • create

        public static WaypointPath create​(@NonNull
                                          @NonNull java.util.List<Locatable> coordinates)
      • getVertices

        public final java.util.List<Locatable> getVertices()
        Description copied from class: Path
        Gets a list of the vertices in this path
        Specified by:
        getVertices in class Path
        Returns:
        A List
      • getNext

        @Nullable
        public Locatable getNext()
        Specified by:
        getNext in class Path
        Returns:
        the next Locatable within the path.
      • getNext

        public final Locatable getNext​(boolean preferViewportTraversal)
        Specified by:
        getNext in class Path