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.SerializerStringVisitable.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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, fillStyle, formatted, formatted, styledasTruncatedString, getString, of, visit, visit, visitSelf, visitSelfconcat, concat, plain, styledprivate 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 ParsableTextcom.mojang.brigadier.exceptions.CommandSyntaxException