public static class NbtText.EntityNbtText extends NbtText
NbtText.BlockNbtText, NbtText.EntityNbtText, NbtText.StorageNbtTextText.SerializerStringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>| Modifier and Type | Field and Description |
|---|---|
private String |
rawSelector |
private EntitySelector |
selector |
EMPTY, TERMINATE_VISIT| Modifier | Constructor and Description |
|---|---|
|
EntityNbtText(String rawPath,
boolean interpret,
String rawSelector) |
private |
EntityNbtText(String rawPath,
NbtPathArgumentType.NbtPath path,
boolean interpret,
String rawSelector,
EntitySelector selector) |
| Modifier and Type | Method and Description |
|---|---|
NbtText.EntityNbtText |
copy()
Copies the text itself, excluding the styles or siblings.
|
boolean |
equals(Object obj) |
String |
getSelector() |
private static EntitySelector |
parseSelector(String rawSelector) |
protected Stream<CompoundTag> |
toNbt(ServerCommandSource source) |
String |
toString() |
getPath, parse, shouldInterpretappend, asOrderedText, asString, 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 final String rawSelector
@Nullable private final EntitySelector selector
private EntityNbtText(String rawPath, @Nullable NbtPathArgumentType.NbtPath path, boolean interpret, String rawSelector, @Nullable EntitySelector selector)
@Nullable private static EntitySelector parseSelector(String rawSelector)
public String getSelector()
public NbtText.EntityNbtText copy()
Textprotected Stream<CompoundTag> toNbt(ServerCommandSource source)