Class TextComponentTagVisitor
java.lang.Object
net.minecraft.nbt.TextComponentTagVisitor
- All Implemented Interfaces:
TagVisitor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfacestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final Componentprivate final Stringprivate intprivate static final intprivate static final org.slf4j.Loggerprivate static final intprivate static final intprivate static final Componentprivate final MutableComponentprivate static final Patternprivate final booleanprivate final TextComponentTagVisitor.Styling -
Constructor Summary
ConstructorsConstructorDescriptionTextComponentTagVisitor(String indentation) TextComponentTagVisitor(String indentation, TextComponentTagVisitor.Styling styling) TextComponentTagVisitor(String indentation, TextComponentTagVisitor.Styling styling, boolean sortKeys) -
Method Summary
Modifier and TypeMethodDescriptionprivate TextComponentTagVisitorprivate TextComponentTagVisitorprivate TextComponentTagVisitorprivate voidappendSubTag(Tag tag, boolean indent) private ComponenthandleEscapePretty(String input) private static booleanvoidvoidvoidvisitCompound(CompoundTag tag) voidvisitDouble(DoubleTag tag) voidvoidvisitFloat(FloatTag tag) voidvoidvisitIntArray(IntArrayTag tag) voidvoidvoidvoidvisitShort(ShortTag tag) voidvisitString(StringTag tag)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
INLINE_LIST_THRESHOLD
private static final int INLINE_LIST_THRESHOLD- See Also:
-
MAX_DEPTH
private static final int MAX_DEPTH- See Also:
-
MAX_LENGTH
private static final int MAX_LENGTH- See Also:
-
SIMPLE_VALUE
-
NEWLINE
-
ELEMENT_SPACING
-
indentation
-
styling
-
sortKeys
private final boolean sortKeys -
indentDepth
private int indentDepth -
depth
private int depth -
result
-
-
Constructor Details
-
TextComponentTagVisitor
-
TextComponentTagVisitor
-
TextComponentTagVisitor
public TextComponentTagVisitor(String indentation, TextComponentTagVisitor.Styling styling, boolean sortKeys)
-
-
Method Details
-
visit
-
append
-
append
-
append
-
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
-
shouldWrapListElements
-
visitList
- Specified by:
visitListin interfaceTagVisitor
-
visitCompound
- Specified by:
visitCompoundin interfaceTagVisitor
-
appendSubTag
-
handleEscapePretty
-
visitEnd
- Specified by:
visitEndin interfaceTagVisitor
-