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| Modifier and Type | Field and Description |
|---|---|
protected boolean |
interpret |
private static Logger |
LOGGER |
protected NbtPathArgumentType.NbtPath |
path |
protected String |
rawPath |
| 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 |
asString() |
String |
getPath() |
Text |
parse(ServerCommandSource source,
Entity sender,
int depth) |
private static NbtPathArgumentType.NbtPath |
parsePath(String rawPath) |
boolean |
shouldInterpret() |
protected abstract Stream<CompoundTag> |
toNbt(ServerCommandSource source) |
append, equals, getSiblings, getStyle, hashCode, setStyle, stream, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, asFormattedString, asTruncatedString, copy, copyWithoutChildren, deepCopy, formatted, formatted, getString, iterator, streamCopied, styledforEach, spliteratorprivate 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 Text parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse in interface ParsableTextcom.mojang.brigadier.exceptions.CommandSyntaxException