Interface ServerLinks.ServerLink
- Enclosing interface:
ServerLinks
public static interface ServerLinks.ServerLink
Represents a server link.
- Since:
- 1.21
-
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.ComponentGets the display name/text Component of this link.@NotNull StringDeprecated.@Nullable ServerLinks.TypegetType()Gets the type of this link if it is a known special type.@NotNull URIgetUrl()Gets the url of this link.
-
Method Details
-
getType
Gets the type of this link if it is a known special type.- Returns:
- type or null
- Since:
- 1.21
-
displayName
@NotNull net.kyori.adventure.text.Component displayName()Gets the display name/text Component of this link.- Returns:
- display name Component
- Since:
- 1.21
-
getDisplayName
Deprecated.in favour ofdisplayName()Gets the display name/text of this link.- Returns:
- display name
- Since:
- 1.21
-
getUrl
-
displayName()