Package net.md_5.bungee.api
Class ServerLink
java.lang.Object
net.md_5.bungee.api.ServerLink
Represents a server link which may be sent to the client.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionServerLink(@NonNull BaseComponent label, @NonNull String url) Creates a link with a label and URL.ServerLink(@NonNull ServerLink.LinkType type, @NonNull String url) Creates a link with a specified type and URL. -
Method Summary
-
Constructor Details
-
ServerLink
Creates a link with a specified type and URL.- Parameters:
type- the type of the linkurl- the URL to be displayed
-
ServerLink
Creates a link with a label and URL.- Parameters:
label- the label to be displayedurl- the URL to be displayed
-
-
Method Details
-
getType
The links type. Note: This value is nullable, if null, label is non-null. -
getLabel
The label for the link. Note: This value is nullable, if null, type is non-null. -
getUrl
The URL that is displayed. -
equals
-
hashCode
public int hashCode() -
toString
-