Package org.bukkit

Interface ServerLinks.ServerLink

Enclosing interface:
ServerLinks

public static interface ServerLinks.ServerLink
Represents a server link.
  • Method Details

    • getType

      @Nullable @Nullable ServerLinks.Type getType()
      Gets the type of this link if it is a known special type.
      Returns:
      type or null
    • displayName

      @NotNull Component displayName()
      Gets the display name/text Component of this link.
      Returns:
      display name Component
    • getDisplayName

      @Deprecated @NotNull @NotNull String getDisplayName()
      Deprecated.
      in favour of displayName()
      Gets the display name/text of this link.
      Returns:
      display name
    • getUrl

      @NotNull @NotNull URI getUrl()
      Gets the url of this link.
      Returns:
      link url