Package net.minecraft.nbt
Class TextComponentTagVisitor
java.lang.Object
net.minecraft.nbt.TextComponentTagVisitor
- All Implemented Interfaces:
TagVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate static final Componentprivate intprivate static final Componentprivate static final Stringprivate static final Stringprivate static final Componentprivate static final Componentprivate final Stringprivate intprivate static final it.unimi.dsi.fastutil.bytes.ByteCollectionprivate static final intprivate static final Componentprivate static final Stringprivate static final Stringprivate static final Stringprivate static final org.slf4j.Loggerprivate static final Componentprivate static final intprivate static final intprivate static final Stringprivate static final Stringprivate final MutableComponentprivate static final Componentprivate static final Patternprivate static final Stringprivate static final Stringprivate static final Stringprivate static final ChatFormattingprivate static final ChatFormattingprivate static final ChatFormattingprivate static final ChatFormattingprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidappendSubTag(Tag p_345236_, boolean p_344785_) protected static ComponenthandleEscapePretty(String p_178254_) voidvoidvisitByteArray(ByteArrayTag p_178256_) voidvisitCompound(CompoundTag p_178260_) voidvisitDouble(DoubleTag p_178262_) voidvoidvisitFloat(FloatTag p_178266_) voidvoidvisitIntArray(IntArrayTag p_178268_) voidvoidvoidvisitLongArray(LongArrayTag p_178274_) voidvisitShort(ShortTag p_178278_) voidvisitString(StringTag p_178280_)
-
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:
-
INLINE_ELEMENT_TYPES
private static final it.unimi.dsi.fastutil.bytes.ByteCollection INLINE_ELEMENT_TYPES -
SYNTAX_HIGHLIGHTING_KEY
-
SYNTAX_HIGHLIGHTING_STRING
-
SYNTAX_HIGHLIGHTING_NUMBER
-
SYNTAX_HIGHLIGHTING_NUMBER_TYPE
-
SIMPLE_VALUE
-
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:
-
NAME_VALUE_SEPARATOR
- See Also:
-
ELEMENT_SEPARATOR
-
WRAPPED_ELEMENT_SEPARATOR
-
SPACED_ELEMENT_SEPARATOR
-
FOLDED
-
BYTE_TYPE
-
SHORT_TYPE
-
INT_TYPE
-
LONG_TYPE
-
FLOAT_TYPE
-
DOUBLE_TYPE
-
BYTE_ARRAY_TYPE
-
indentation
-
indentDepth
private int indentDepth -
depth
private int depth -
result
-
-
Constructor Details
-
TextComponentTagVisitor
-
-
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
-
appendSubTag
-
handleEscapePretty
-
visitEnd
- Specified by:
visitEndin interfaceTagVisitor
-