public class SelectorText extends BaseText implements ParsableText
Text.SerializerStringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>| Modifier and Type | Field and Description |
|---|---|
private static Logger |
LOGGER |
private String |
pattern |
private EntitySelector |
selector |
EMPTY, TERMINATE_VISIT| Constructor and Description |
|---|
SelectorText(String pattern) |
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Returns the string representation of this text itself, excluding siblings.
|
SelectorText |
copy()
Copies the text itself, excluding the styles or siblings.
|
boolean |
equals(Object obj) |
String |
getPattern() |
MutableText |
parse(ServerCommandSource source,
Entity sender,
int depth) |
String |
toString() |
append, asOrderedText, getSiblings, getStyle, hashCode, setStyle, shallowCopyclone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, fillStyle, formatted, formatted, styledasTruncatedString, getString, of, visit, visit, visitSelf, visitSelfconcat, concat, plain, styledprivate static final Logger LOGGER
private final String pattern
@Nullable private final EntitySelector selector
public SelectorText(String pattern)
public String getPattern()
public MutableText parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse in interface ParsableTextcom.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic String asString()
public SelectorText copy()
Text