Class FlickWaypoint
java.lang.Object
net.flick.serverapi.FlickWaypoint
A server-defined waypoint shown by Flick Client (beam, icon, name and distance). Waypoints exist only for the
current connection; adding a waypoint with an existing id replaces it.
FlickWaypoint wp = FlickWaypoint.builder("ctf_red_flag")
.name("Red flag")
.location(flagLocation)
.color(0xFF5555)
.icon(WaypointIcon.FLAG)
.build();
FlickAPI.get().addWaypoint(player, wp);
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanbeam()static FlickWaypoint.Builderintcolor()RGB (0xRRGGBB).static StringdimensionOf(org.bukkit.World world) Dimension key for a Bukkit world (minecraft:overworld,minecraft:the_nether, ...).longClient-side expiry in ms after it is received (0 = until removed / disconnect).icon()id()name()booleanRemoved by the client once the player is within 4 blocks.doublex()doubley()doublez()
-
Field Details
-
MAX_NAME
public static final int MAX_NAME- See Also:
-
-
Method Details
-
builder
-
id
-
name
-
dimension
-
x
public double x() -
y
public double y() -
z
public double z() -
color
public int color()RGB (0xRRGGBB). -
icon
-
beam
public boolean beam() -
temporary
public boolean temporary()Removed by the client once the player is within 4 blocks. -
durationMs
public long durationMs()Client-side expiry in ms after it is received (0 = until removed / disconnect). -
dimensionOf
Dimension key for a Bukkit world (minecraft:overworld,minecraft:the_nether, ...).
-