Package net.minecraft.nbt
Class TextComponentTagVisitor
java.lang.Object
net.minecraft.nbt.TextComponentTagVisitor
- All Implemented Interfaces:
TagVisitor
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Component
private static final Component
private int
private static final Component
private static final String
private static final String
private static final Component
private static final Component
private final String
private int
private static final it.unimi.dsi.fastutil.bytes.ByteCollection
private static final int
private static final Component
private static final String
private static final String
private static final String
private static final org.slf4j.Logger
private static final Component
private static final int
private static final int
private static final String
private static final String
private final MutableComponent
private static final Component
private static final Pattern
private static final String
private static final String
private static final String
private static final ChatFormatting
private static final ChatFormatting
private static final ChatFormatting
private static final ChatFormatting
private static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
appendSubTag
(Tag p_345236_, boolean p_344785_) protected static Component
handleEscapePretty
(String p_178254_) void
void
visitByteArray
(ByteArrayTag p_178256_) void
visitCompound
(CompoundTag p_178260_) void
visitDouble
(DoubleTag p_178262_) void
void
visitFloat
(FloatTag p_178266_) void
void
visitIntArray
(IntArrayTag p_178268_) void
void
void
visitLongArray
(LongArrayTag p_178274_) void
visitShort
(ShortTag p_178278_) void
visitString
(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:
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
-
appendSubTag
-
handleEscapePretty
-
visitEnd
- Specified by:
visitEnd
in interfaceTagVisitor
-