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 TypeMethodDescriptionbooleanorg.bukkit.inventory.ItemStackgetIcon()This method returns theItemStackicon for thisWaypoint.getId()This method returns the unique identifier for thisWaypoint.org.bukkit.LocationThis returns theLocationof thisWaypointgetName()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, org.bukkit.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
@ParametersAreNonnullByDefault public Waypoint(UUID ownerId, String id, org.bukkit.Location loc, String name) 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
@Nonnull public org.bukkit.Location getLocation()This returns theLocationof thisWaypoint- Returns:
- The
WaypointLocation
-
isDeathpoint
public boolean isDeathpoint()This method returns whether thisWaypointis a Deathpoint.- Returns:
- Whether this is a Deathpoint
-
getIcon
@Nonnull public org.bukkit.inventory.ItemStack getIcon()This method returns theItemStackicon for thisWaypoint. The icon is dependent on theWorld.EnvironmenttheWaypointis in and whether it is a Deathpoint.- Returns:
- The
ItemStackicon for thisWaypoint
-
hashCode
public int hashCode() -
equals
-
Waypoint(UUID, String, Location, String)instead