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
ConstructorsConstructorDescriptionSnbtPrinterTagVisitor(String p_178107_, int p_178108_, List<String> p_178109_) -
Method Summary
Modifier and TypeMethodDescriptiongetKeys(CompoundTag p_178147_) protected static StringhandleEscapePretty(String p_178112_) private voidpopPath()private voidvoidvoidvisitByteArray(ByteArrayTag p_178116_) voidvisitCompound(CompoundTag p_178120_) voidvisitDouble(DoubleTag p_178122_) voidvoidvisitFloat(FloatTag p_178126_) voidvoidvisitIntArray(IntArrayTag p_178128_) voidvoidvoidvisitLongArray(LongArrayTag p_178134_) voidvisitShort(ShortTag p_178138_) voidvisitString(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:
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
-