public class SelectorText extends BaseText implements ParsableText
Text.Serializer| Modifier and Type | Field and Description |
|---|---|
private static Logger |
LOGGER |
private String |
pattern |
private EntitySelector |
selector |
| Constructor and Description |
|---|
SelectorText(String pattern) |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
SelectorText |
copy() |
boolean |
equals(Object obj) |
String |
getPattern() |
Text |
parse(ServerCommandSource source,
Entity sender,
int depth) |
String |
toString() |
append, getSiblings, getStyle, hashCode, setStyle, streamclone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, asFormattedString, asTruncatedString, copyWithoutChildren, deepCopy, formatted, formatted, getString, iterator, streamCopied, styledforEach, spliteratorprivate static final Logger LOGGER
private final String pattern
@Nullable private final EntitySelector selector
public SelectorText(String pattern)
public String getPattern()
public Text parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse in interface ParsableTextcom.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic SelectorText copy()