public static class Text.Selector extends Text
Text
containing a selector that will be replaced by
the names of the matching entities on the client.Selector
,
TextBuilder.Score
Text.Literal, Text.Placeholder, Text.Score, Text.Selector, Text.Translatable
Modifier and Type | Field and Description |
---|---|
protected Selector |
selector |
children, childrenIterable, clickAction, format, hoverAction, shiftClickAction
Modifier and Type | Method and Description |
---|---|
TextBuilder.Selector |
builder()
Returns a new
TextBuilder with the content, formatting and
actions of this text. |
boolean |
equals(Object o) |
Selector |
getSelector()
Returns the selector used in this
Text . |
int |
hashCode() |
String |
toString() |
getChildren, getClickAction, getColor, getFormat, getHoverAction, getShiftClickAction, getStyle, toText, withChildren
protected final Selector selector
public final Selector getSelector()
Text
.public TextBuilder.Selector builder()
Text
TextBuilder
with the content, formatting and
actions of this text. This can be used to edit an otherwise immutable
Text
instance.