Package net.minecraft.nbt
Class SnbtPrinterTagVisitor
java.lang.Object
net.minecraft.nbt.SnbtPrinterTagVisitor
- All Implemented Interfaces:
TagVisitor
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private static final String
private static final String
private final String
private static final String
private static final String
private static final String
private static final String
private static final String
private String
private static final Pattern
private static final String
private static final String
-
Constructor Summary
ConstructorDescriptionSnbtPrinterTagVisitor
(String p_178107_, int p_178108_, List<String> p_178109_) -
Method Summary
Modifier and TypeMethodDescriptiongetKeys
(CompoundTag p_178147_) protected static String
handleEscapePretty
(String p_178112_) private void
popPath()
private void
void
void
visitByteArray
(ByteArrayTag p_178116_) void
visitCompound
(CompoundTag p_178120_) void
visitDouble
(DoubleTag p_178122_) void
void
visitFloat
(FloatTag p_178126_) void
void
visitIntArray
(IntArrayTag p_178128_) void
void
void
visitLongArray
(LongArrayTag p_178134_) void
visitShort
(ShortTag p_178138_) void
visitString
(StringTag p_178140_)
-
Field Details
-
KEY_ORDER
-
NO_INDENTATION
-
SIMPLE_VALUE
-
NAME_VALUE_SEPARATOR
-
ELEMENT_SEPARATOR
-
LIST_OPEN
- See Also:
-
LIST_CLOSE
- See Also:
-
LIST_TYPE_SEPARATOR
- See Also:
-
ELEMENT_SPACING
- See Also:
-
STRUCT_OPEN
- See Also:
-
STRUCT_CLOSE
- See Also:
-
NEWLINE
- See Also:
-
indentation
-
depth
private final int depth -
path
-
result
-
-
Constructor Details
-
SnbtPrinterTagVisitor
public SnbtPrinterTagVisitor() -
SnbtPrinterTagVisitor
-
-
Method Details
-
visit
-
visitString
- Specified by:
visitString
in interfaceTagVisitor
-
visitByte
- Specified by:
visitByte
in interfaceTagVisitor
-
visitShort
- Specified by:
visitShort
in interfaceTagVisitor
-
visitInt
- Specified by:
visitInt
in interfaceTagVisitor
-
visitLong
- Specified by:
visitLong
in interfaceTagVisitor
-
visitFloat
- Specified by:
visitFloat
in interfaceTagVisitor
-
visitDouble
- Specified by:
visitDouble
in interfaceTagVisitor
-
visitByteArray
- Specified by:
visitByteArray
in interfaceTagVisitor
-
visitIntArray
- Specified by:
visitIntArray
in interfaceTagVisitor
-
visitLongArray
- Specified by:
visitLongArray
in interfaceTagVisitor
-
visitList
- Specified by:
visitList
in interfaceTagVisitor
-
visitCompound
- Specified by:
visitCompound
in interfaceTagVisitor
-
popPath
private void popPath() -
pushPath
-
getKeys
-
pathString
-
handleEscapePretty
-
visitEnd
- Specified by:
visitEnd
in interfaceTagVisitor
-