Package net.minecraft.nbt
Class SnbtPrinterTagVisitor
java.lang.Object
net.minecraft.nbt.SnbtPrinterTagVisitor
- All Implemented Interfaces:
TagVisitor
-
Field Summary
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKeys
(CompoundTag tag) protected static String
handleEscapePretty
(String text) private void
popPath()
private void
void
void
void
visitCompound
(CompoundTag p_tag) void
visitDouble
(DoubleTag tag) void
void
visitFloat
(FloatTag tag) void
void
visitIntArray
(IntArrayTag tag) void
void
void
void
visitShort
(ShortTag tag) void
visitString
(StringTag tag)
-
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
-