Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
@NotNull Waypoint |
build()
Assembles the
Waypoint . |
@NotNull Waypoint.Builder |
color(@NotNull java.awt.Color color)
Sets the color to be built into the
Waypoint . |
@NotNull Waypoint.Builder |
color(int color)
Sets the color to be built into the
Waypoint . |
@NotNull Waypoint.Builder |
duration(long duration)
Sets the duration to be built into the
Waypoint . |
@NotNull Waypoint.Builder |
infinite()
Sets the duration to be built into the
Waypoint to infinite. |
@NotNull Waypoint.Builder |
name(@NotNull java.lang.String name)
Sets the name to be built into the
Waypoint . |
@NotNull Waypoint.Builder |
pos(@NotNull org.bukkit.Location pos)
Sets the position to be built into the
Waypoint . |
@NotNull Waypoint.Builder |
world(@NotNull java.lang.String world)
Sets the world name to be built into the
Waypoint . |
@NotNull Waypoint.Builder |
world(@NotNull org.bukkit.World worldObj)
Sets the world name to be built into the
Waypoint . |
@NotNull public @NotNull Waypoint.Builder name(@NotNull @NotNull java.lang.String name)
Waypoint
.name
- the name@NotNull public @NotNull Waypoint.Builder pos(@NotNull @NotNull org.bukkit.Location pos)
Waypoint
.pos
- the position@NotNull public @NotNull Waypoint.Builder color(int color)
Waypoint
.color
- the color@NotNull public @NotNull Waypoint.Builder color(@NotNull @NotNull java.awt.Color color)
Waypoint
.color
- the color@NotNull public @NotNull Waypoint.Builder world(@NotNull @NotNull java.lang.String world)
Waypoint
.world
- the world name@NotNull public @NotNull Waypoint.Builder world(@NotNull @NotNull org.bukkit.World worldObj)
Waypoint
.worldObj
- the world object@NotNull public @NotNull Waypoint.Builder duration(long duration)
Waypoint
.duration
- the duration@NotNull public @NotNull Waypoint.Builder infinite()
Waypoint
to infinite.