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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getIcon()
getId()
This method returns the unique identifier for 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, 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
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
-
isDeathpoint
public boolean isDeathpoint()This method returns whether thisWaypoint
is a Deathpoint.- Returns:
- Whether this is a Deathpoint
-
getIcon
This method returns theItemStack
icon for thisWaypoint
. The icon is dependent on theWorld.Environment
theWaypoint
is in and whether it is a Deathpoint. -
hashCode
public int hashCode() -
equals
-
Waypoint(UUID, String, Location, String)
instead