public static class NbtText.BlockNbtText extends NbtText
NbtText.BlockNbtText, NbtText.EntityNbtText, NbtText.StorageNbtText
Text.Serializer
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
Modifier and Type | Field and Description |
---|---|
private PosArgument |
pos |
private String |
rawPos |
EMPTY, TERMINATE_VISIT
Modifier | Constructor and Description |
---|---|
|
BlockNbtText(String rawPath,
boolean rawJson,
String rawPos) |
private |
BlockNbtText(String rawPath,
NbtPathArgumentType.NbtPath path,
boolean interpret,
String rawPos,
PosArgument pos) |
Modifier and Type | Method and Description |
---|---|
NbtText.BlockNbtText |
copy()
Copies the text itself, excluding the styles or siblings.
|
boolean |
equals(Object obj) |
String |
getPos() |
private PosArgument |
parsePos(String rawPos) |
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 rawPos
@Nullable private final PosArgument pos
private BlockNbtText(String rawPath, @Nullable NbtPathArgumentType.NbtPath path, boolean interpret, String rawPos, @Nullable PosArgument pos)
@Nullable private PosArgument parsePos(String rawPos)
public NbtText.BlockNbtText copy()
Text
protected Stream<CompoundTag> toNbt(ServerCommandSource source)