public abstract class NbtText extends BaseText implements ParsableText
Modifier and Type | Class and Description |
---|---|
static class |
NbtText.BlockNbtText |
static class |
NbtText.EntityNbtText |
static class |
NbtText.StorageNbtText |
Text.Serializer
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
Modifier and Type | Field and Description |
---|---|
protected boolean |
interpret |
private static Logger |
LOGGER |
protected NbtPathArgumentType.NbtPath |
path |
protected String |
rawPath |
EMPTY, TERMINATE_VISIT
Modifier | Constructor and Description |
---|---|
|
NbtText(String rawPath,
boolean interpret) |
protected |
NbtText(String rawPath,
NbtPathArgumentType.NbtPath path,
boolean interpret) |
Modifier and Type | Method and Description |
---|---|
String |
getPath() |
MutableText |
parse(ServerCommandSource source,
Entity sender,
int depth) |
private static NbtPathArgumentType.NbtPath |
parsePath(String rawPath) |
boolean |
shouldInterpret() |
protected abstract Stream<CompoundTag> |
toNbt(ServerCommandSource source) |
append, asOrderedText, asString, copy, equals, getSiblings, getStyle, hashCode, setStyle, shallowCopy, toString
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
protected final boolean interpret
protected final String rawPath
@Nullable protected final NbtPathArgumentType.NbtPath path
public NbtText(String rawPath, boolean interpret)
protected NbtText(String rawPath, @Nullable NbtPathArgumentType.NbtPath path, boolean interpret)
@Nullable private static NbtPathArgumentType.NbtPath parsePath(String rawPath)
protected abstract Stream<CompoundTag> toNbt(ServerCommandSource source)
public String getPath()
public boolean shouldInterpret()
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