Package org.bukkit

Interface ServerLinks.ServerLink

Enclosing interface:
ServerLinks

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

    Modifier and Type
    Method
    Description
    net.kyori.adventure.text.Component
    Gets the display name/text Component of this link.
    @NotNull String
    Deprecated.
    in favour of displayName()
    Gets the type of this link if it is a known special type.
    @NotNull URI
    Gets the url of this 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 net.kyori.adventure.text.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