public static class NbtText.EntityNbtText extends NbtText
NbtText.BlockNbtText, NbtText.EntityNbtText, NbtText.StorageNbtText
Text.Serializer
StringVisitable.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, shouldInterpret
append, asOrderedText, asString, 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 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()
Text
protected Stream<CompoundTag> toNbt(ServerCommandSource source)