java.lang.Object
io.github.thebusybiscuit.slimefun4.api.gps.Waypoint

public class Waypoint extends Object
A Waypoint represents a named Location that was created by a Player. It can be used via a Teleporter.
Author:
TheBusyBiscuit
See Also:
  • Constructor Details

  • Method Details

    • getOwnerId

      @Nonnull public UUID getOwnerId()
      This returns the owner's UUID of the Waypoint.
      Returns:
      The corresponding owner's UUID
    • getOwner

      @Nonnull @Deprecated public PlayerProfile getOwner()
      Deprecated.
      Use getOwnerId() instead
      This returns the owner of the Waypoint.
      Returns:
      The corresponding PlayerProfile
    • getId

      @Nonnull public String getId()
      This method returns the unique identifier for this Waypoint.
      Returns:
      The Waypoint id
    • getName

      @Nonnull public String getName()
      This returns the name of this Waypoint.
      Returns:
      The name of this Waypoint
    • getLocation

      @Nonnull public org.bukkit.Location getLocation()
      This returns the Location of this Waypoint
      Returns:
      The Waypoint Location
    • isDeathpoint

      public boolean isDeathpoint()
      This method returns whether this Waypoint is a Deathpoint.
      Returns:
      Whether this is a Deathpoint
    • getIcon

      @Nonnull public org.bukkit.inventory.ItemStack getIcon()
      This method returns the ItemStack icon for this Waypoint. The icon is dependent on the World.Environment the Waypoint is in and whether it is a Deathpoint.
      Returns:
      The ItemStack icon for this Waypoint
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object