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 pTag) protected static String
handleEscapePretty
(String pText) private void
popPath()
private void
void
void
visitByteArray
(ByteArrayTag pTag) void
visitCompound
(CompoundTag pTag) void
visitDouble
(DoubleTag pTag) void
void
visitFloat
(FloatTag pTag) void
void
visitIntArray
(IntArrayTag pTag) void
void
void
visitLongArray
(LongArrayTag pTag) void
visitShort
(ShortTag pTag) void
visitString
(StringTag pTag)
-
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
-