Class WorldMapPoint.WorldMapPointBuilder<C extends WorldMapPoint,B extends WorldMapPoint.WorldMapPointBuilder<C,B>>
- java.lang.Object
-
- net.runelite.client.ui.overlay.worldmap.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 Summary
Constructors Constructor Description WorldMapPointBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Cbuild()BcurrentlyEdgeSnapped(boolean currentlyEdgeSnapped)Bimage(BufferedImage image)BimagePoint(net.runelite.api.Point imagePoint)The point on the image that will be drawn at WorldPoint WorldMapPointManager will center the image if imagePoint is nullBjumpOnClick(boolean jumpOnClick)Whether or not the map jumps to target, or worldPoint when the overlay is clickedBname(String name)Name in menu option whenjumpOnClickis setprotected abstract Bself()BsnapToEdge(boolean snapToEdge)Btarget(net.runelite.api.coords.WorldPoint target)The WorldPoint which the worldmap will jump to when clickedBtooltip(String tooltip)StringtoString()BworldPoint(net.runelite.api.coords.WorldPoint worldPoint)
-
-
-
Method Detail
-
image
public B image(BufferedImage image)
- Returns:
this.
-
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.
-
self
protected abstract B self()
-
build
public abstract C build()
-
-