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 TypeMethodDescriptionbooleangetIcon()getId()This method returns the unique identifier for thisWaypoint.getName()This returns the name of thisWaypoint.getOwner()Deprecated.UsegetOwnerId()insteadinthashCode()booleanThis method returns whether thisWaypointis 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 newWaypointobject.- Parameters:
profile- The owningPlayerProfileid- The unique id for thisWaypointloc- TheLocationof theWaypointname- The name of thisWaypoint
-
Waypoint
This constructs a newWaypointobject.
-
-
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
Waypointid
-
getName
This returns the name of thisWaypoint.- Returns:
- The name of this
Waypoint
-
getLocation
-
isDeathpoint
public boolean isDeathpoint()This method returns whether thisWaypointis a Deathpoint.- Returns:
- Whether this is a Deathpoint
-
getIcon
This method returns theItemStackicon for thisWaypoint. The icon is dependent on theWorld.EnvironmenttheWaypointis in and whether it is a Deathpoint. -
hashCode
public int hashCode() -
equals
-
Waypoint(UUID, String, Location, String)instead