Package net.minecraft.nbt
Class SnbtPrinterTagVisitor
java.lang.Object
net.minecraft.nbt.SnbtPrinterTagVisitor
- All Implemented Interfaces:
TagVisitor
-
Field Summary
-
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:
- Constant Field Values
-
LIST_CLOSE
- See Also:
- Constant Field Values
-
LIST_TYPE_SEPARATOR
- See Also:
- Constant Field Values
-
ELEMENT_SPACING
- See Also:
- Constant Field Values
-
STRUCT_OPEN
- See Also:
- Constant Field Values
-
STRUCT_CLOSE
- See Also:
- Constant Field Values
-
NEWLINE
- See Also:
- Constant Field Values
-
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
-