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.class_5245<T>, Text.class_5246<T>, Text.Serializer| Modifier and Type | Field and Description |
|---|---|
protected boolean |
interpret |
private static Logger |
LOGGER |
protected NbtPathArgumentType.NbtPath |
path |
protected String |
rawPath |
field_24340| 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() |
class_5250 |
parse(ServerCommandSource source,
Entity sender,
int depth) |
private static NbtPathArgumentType.NbtPath |
parsePath(String rawPath) |
boolean |
shouldInterpret() |
protected abstract Stream<CompoundTag> |
toNbt(ServerCommandSource source) |
append, asString, equals, getSiblings, getStyle, hashCode, method_27661, method_27662, setStyle, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitmethod_27692, method_27693, method_27694, method_27695, method_27696asTruncatedString, getString, method_27657, method_27658, method_27659, method_27660private 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 class_5250 parse(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse in interface ParsableTextcom.mojang.brigadier.exceptions.CommandSyntaxException