Package net.minecraft.nbt
Class SnbtPrinterTagVisitor
java.lang.Object
net.minecraft.nbt.SnbtPrinterTagVisitor
- All Implemented Interfaces:
TagVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate static final Stringprivate static final Stringprivate final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate Stringprivate static final Patternprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKeys(CompoundTag pTag) protected static StringhandleEscapePretty(String pText) private voidpopPath()private voidvoidvoidvisitByteArray(ByteArrayTag pTag) voidvisitCompound(CompoundTag pTag) voidvisitDouble(DoubleTag pTag) voidvoidvisitFloat(FloatTag pTag) voidvoidvisitIntArray(IntArrayTag pTag) voidvoidvoidvisitLongArray(LongArrayTag pTag) voidvisitShort(ShortTag pTag) voidvisitString(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:
visitStringin interfaceTagVisitor
-
visitByte
- Specified by:
visitBytein interfaceTagVisitor
-
visitShort
- Specified by:
visitShortin interfaceTagVisitor
-
visitInt
- Specified by:
visitIntin interfaceTagVisitor
-
visitLong
- Specified by:
visitLongin interfaceTagVisitor
-
visitFloat
- Specified by:
visitFloatin interfaceTagVisitor
-
visitDouble
- Specified by:
visitDoublein interfaceTagVisitor
-
visitByteArray
- Specified by:
visitByteArrayin interfaceTagVisitor
-
visitIntArray
- Specified by:
visitIntArrayin interfaceTagVisitor
-
visitLongArray
- Specified by:
visitLongArrayin interfaceTagVisitor
-
visitList
- Specified by:
visitListin interfaceTagVisitor
-
visitCompound
- Specified by:
visitCompoundin interfaceTagVisitor
-
popPath
private void popPath() -
pushPath
-
getKeys
-
pathString
-
handleEscapePretty
-
visitEnd
- Specified by:
visitEndin interfaceTagVisitor
-