Package net.minecraft.nbt
Class TextComponentTagVisitor
java.lang.Object
net.minecraft.nbt.TextComponentTagVisitor
- All Implemented Interfaces:
TagVisitor
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private static final String
private static final String
private final String
private final int
private static final it.unimi.dsi.fastutil.bytes.ByteCollection
private static final int
private static final String
private static final String
private static final String
private static final org.slf4j.Logger
private static final int
private static final String
private static final String
private Component
private static final Pattern
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 Component
-
Constructor Summary
ModifierConstructorDescriptionTextComponentTagVisitor
(String p_178251_) private
TextComponentTagVisitor
(String p_330300_, int p_329281_, int p_331889_) -
Method Summary
Modifier and TypeMethodDescriptionprivate Component
buildSubTag
(Tag p_330774_, boolean p_331440_) 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:
-
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
-
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:
-
TOO_DEEP
-
indentation
-
indentDepth
private final int indentDepth -
depth
private final int depth -
result
-
-
Constructor Details
-
TextComponentTagVisitor
-
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
-
buildSubTag
-
handleEscapePretty
-
visitEnd
- Specified by:
visitEnd
in interfaceTagVisitor
-