Class Waypoint
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.gps.Waypoint
A
Waypoint
represents a named Location
that was created by a Player
.
It can be used via a Teleporter
.- Author:
- TheBusyBiscuit
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.bukkit.inventory.ItemStack
getIcon()
This method returns theItemStack
icon for thisWaypoint
.getId()
This method returns the unique identifier for thisWaypoint
.org.bukkit.Location
This returns theLocation
of thisWaypoint
getName()
This returns the name of thisWaypoint
.getOwner()
Deprecated.UsegetOwnerId()
insteadint
hashCode()
boolean
This method returns whether thisWaypoint
is a Deathpoint.
-
Constructor Details
-
Waypoint
@Deprecated @ParametersAreNonnullByDefault public Waypoint(PlayerProfile profile, String id, org.bukkit.Location loc, String name) Deprecated.UseWaypoint(UUID, String, Location, String)
insteadThis constructs a newWaypoint
object.- Parameters:
profile
- The owningPlayerProfile
id
- The unique id for thisWaypoint
loc
- TheLocation
of theWaypoint
name
- The name of thisWaypoint
-
Waypoint
@ParametersAreNonnullByDefault public Waypoint(UUID ownerId, String id, org.bukkit.Location loc, String name) This constructs a newWaypoint
object.
-
-
Method Details
-
getOwnerId
- Returns:
- The corresponding owner's
UUID
-
getOwner
Deprecated.UsegetOwnerId()
insteadThis returns the owner of theWaypoint
.- Returns:
- The corresponding
PlayerProfile
-
getId
This method returns the unique identifier for thisWaypoint
.- Returns:
- The
Waypoint
id
-
getName
This returns the name of thisWaypoint
.- Returns:
- The name of this
Waypoint
-
getLocation
@Nonnull public org.bukkit.Location getLocation()This returns theLocation
of thisWaypoint
- Returns:
- The
Waypoint
Location
-
isDeathpoint
public boolean isDeathpoint()This method returns whether thisWaypoint
is a Deathpoint.- Returns:
- Whether this is a Deathpoint
-
getIcon
@Nonnull public org.bukkit.inventory.ItemStack getIcon()This method returns theItemStack
icon for thisWaypoint
. The icon is dependent on theWorld.Environment
theWaypoint
is in and whether it is a Deathpoint.- Returns:
- The
ItemStack
icon for thisWaypoint
-
hashCode
public int hashCode() -
equals
-
Waypoint(UUID, String, Location, String)
instead