public final class SelectorText extends Text
Text containing a selector that will be replaced by the
names of the matching entities on the client.Selector,
SelectorText.Builder| Modifier and Type | Class and Description |
|---|---|
static class |
SelectorText.Builder
Represents a
Text.Builder creating immutable SelectorText
instances. |
EMPTY, NEW_LINE, PLAIN_COMPARATOR| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Selector |
getSelector()
Returns the selector used in this
Text. |
int |
hashCode() |
SelectorText.Builder |
toBuilder()
Returns a new
Text.Builder with the content, formatting and actions of
this text. |
builder, builder, builder, builder, builder, builder, builder, builder, builder, builder, builder, builder, compareTo, concat, getChildren, getClickAction, getColor, getContentVersion, getFormat, getHoverAction, getShiftClickAction, getStyle, isEmpty, join, join, join, joinWith, joinWith, joinWith, of, of, of, of, of, of, of, of, replace, replace, replace, replace, toContainer, toPlain, toPlainSingle, toString, toText, trim, withChildrenclone, finalize, getClass, notify, notifyAll, wait, wait, waitapplyTopublic Selector getSelector()
Text.public SelectorText.Builder toBuilder()
TextText.Builder with the content, formatting and actions of
this text. This can be used to edit an otherwise immutable Text
instance.