Class WorldMapPoint.WorldMapPointBuilder<C extends WorldMapPoint,​B extends WorldMapPoint.WorldMapPointBuilder<C,​B>>

  • Enclosing class:
    WorldMapPoint

    public abstract static class WorldMapPoint.WorldMapPointBuilder<C extends WorldMapPoint,​B extends WorldMapPoint.WorldMapPointBuilder<C,​B>>
    extends Object
    • Constructor Detail

      • WorldMapPointBuilder

        public WorldMapPointBuilder()
    • Method Detail

      • worldPoint

        public B worldPoint​(net.runelite.api.coords.WorldPoint worldPoint)
        Returns:
        this.
      • target

        public B target​(@Nullable
                        net.runelite.api.coords.WorldPoint target)
        The WorldPoint which the worldmap will jump to when clicked
        Returns:
        this.
      • imagePoint

        public B imagePoint​(net.runelite.api.Point imagePoint)
        The point on the image that will be drawn at WorldPoint WorldMapPointManager will center the image if imagePoint is null
        Returns:
        this.
      • snapToEdge

        public B snapToEdge​(boolean snapToEdge)
        Returns:
        this.
      • currentlyEdgeSnapped

        public B currentlyEdgeSnapped​(boolean currentlyEdgeSnapped)
        Returns:
        this.
      • jumpOnClick

        public B jumpOnClick​(boolean jumpOnClick)
        Whether or not the map jumps to target, or worldPoint when the overlay is clicked
        Returns:
        this.
      • name

        public B name​(String name)
        Name in menu option when jumpOnClick is set
        Returns:
        this.
      • tooltip

        public B tooltip​(String tooltip)
        Returns:
        this.
      • self

        protected abstract B self()
      • build

        public abstract C build()