public final class Waypoint
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Waypoint.Builder
Builder for
Waypoint . |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COLOR
The default color used in
Waypoint.Builder . |
static long |
DEFAULT_DURATION
The default duration used in
Waypoint.Builder . |
static java.lang.String |
DEFAULT_WORLD
The default world name used in
Waypoint.Builder . |
static long |
NO_DURATION
The value to be used for any
Waypoint intended to last an infinite amount of time. |
Modifier and Type | Method and Description |
---|---|
static @NotNull Waypoint.Builder |
builder()
Begins a new builder of this class.
|
boolean |
equals(java.lang.Object obj) |
int |
getColor()
Get the color of the waypoint.
|
long |
getDuration()
Get the duration of the waypoint in milliseconds.
|
@NotNull java.util.UUID |
getId()
Get the unique ID of the waypoint.
|
@NotNull java.lang.String |
getName()
Get the name of the waypoint.
|
@NotNull org.bukkit.Location |
getPos()
Get the position of the waypoint.
|
@NotNull java.lang.String |
getWorld()
Get the name of the world that the waypoint is in.
|
int |
hashCode() |
@NotNull java.lang.String |
toString() |
public static final int DEFAULT_COLOR
Waypoint.Builder
.public static final java.lang.String DEFAULT_WORLD
Waypoint.Builder
.public static final long DEFAULT_DURATION
Waypoint.Builder
.public static final long NO_DURATION
Waypoint
intended to last an infinite amount of time.@NotNull public @NotNull java.util.UUID getId()
UUID
@NotNull public @NotNull java.lang.String getName()
@NotNull public @NotNull org.bukkit.Location getPos()
public int getColor()
@NotNull public @NotNull java.lang.String getWorld()
public long getDuration()
@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@NotNull public static @NotNull Waypoint.Builder builder()