public class SelectorText extends BaseText implements ParsableText
Text.Serializer
StringVisitable.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, shallowCopy
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
append, fillStyle, formatted, formatted, styled
asTruncatedString, getString, of, visit, visit, visitSelf, visitSelf
concat, concat, plain, styled
private 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 ParsableText
com.mojang.brigadier.exceptions.CommandSyntaxException
public String asString()
public SelectorText copy()
Text