Package net.minecraft.nbt.visitor
Class NbtTextFormatter
java.lang.Object
net.minecraft.nbt.visitor.NbtTextFormatter
- All Implemented Interfaces:
NbtElementVisitor
Formats an NBT element into a colored, multiline
Text
representation suitable for human-readable
displays.- Mappings:
Namespace Name named net/minecraft/nbt/visitor/NbtTextFormatter
intermediary net/minecraft/class_5628
official vd
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Text
private static final Text
private static final String
private static final String
private static final String
private int
private static final Text
private static final Text
private static final String
private static final String
private static final String
private static final int
private static final int
private static final int
private static final Text
private int
private static final Text
private static final Logger
private static final Text
private static final Formatting
private static final String
private static final Formatting
private final String
private final MutableText
private static final String
private static final Text
private static final Pattern
private static final ByteCollection
private static final String
private static final String
private static final String
private static final Formatting
private static final Formatting
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(NbtElement element) Returns the textified NBTelement
.protected static Text
escapeName
(String name) private void
formatSubElement
(NbtElement element, boolean indent) void
void
visitByteArray
(NbtByteArray element) void
visitCompound
(NbtCompound compound) void
visitDouble
(NbtDouble element) void
void
visitFloat
(NbtFloat element) void
void
visitIntArray
(NbtIntArray element) void
void
void
visitLongArray
(NbtLongArray element) void
visitShort
(NbtShort element) void
visitString
(NbtString element)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/nbt/visitor/NbtTextFormatter;LOGGER:Lorg/slf4j/Logger;
intermediary field_27831
Lnet/minecraft/class_5628;field_27831:Lorg/slf4j/Logger;
official a
Lvd;a:Lorg/slf4j/Logger;
-
field_33271
private static final int field_33271- See Also:
- Mappings:
Namespace Name Mixin selector named field_33271
Lnet/minecraft/nbt/visitor/NbtTextFormatter;field_33271:I
intermediary field_33271
Lnet/minecraft/class_5628;field_33271:I
official b
Lvd;b:I
-
field_51497
private static final int field_51497- See Also:
- Mappings:
Namespace Name Mixin selector named field_51497
Lnet/minecraft/nbt/visitor/NbtTextFormatter;field_51497:I
intermediary field_51497
Lnet/minecraft/class_5628;field_51497:I
official c
Lvd;c:I
-
field_51921
private static final int field_51921- See Also:
- Mappings:
Namespace Name Mixin selector named field_51921
Lnet/minecraft/nbt/visitor/NbtTextFormatter;field_51921:I
intermediary field_51921
Lnet/minecraft/class_5628;field_51921:I
official d
Lvd;d:I
-
SINGLE_LINE_ELEMENT_TYPES
- Mappings:
Namespace Name Mixin selector named SINGLE_LINE_ELEMENT_TYPES
Lnet/minecraft/nbt/visitor/NbtTextFormatter;SINGLE_LINE_ELEMENT_TYPES:Lit/unimi/dsi/fastutil/bytes/ByteCollection;
intermediary field_27832
Lnet/minecraft/class_5628;field_27832:Lit/unimi/dsi/fastutil/bytes/ByteCollection;
official e
Lvd;e:Lit/unimi/dsi/fastutil/bytes/ByteCollection;
-
NAME_COLOR
- Mappings:
Namespace Name Mixin selector named NAME_COLOR
Lnet/minecraft/nbt/visitor/NbtTextFormatter;NAME_COLOR:Lnet/minecraft/util/Formatting;
intermediary field_27833
Lnet/minecraft/class_5628;field_27833:Lnet/minecraft/class_124;
official f
Lvd;f:Ln;
-
STRING_COLOR
- Mappings:
Namespace Name Mixin selector named STRING_COLOR
Lnet/minecraft/nbt/visitor/NbtTextFormatter;STRING_COLOR:Lnet/minecraft/util/Formatting;
intermediary field_27834
Lnet/minecraft/class_5628;field_27834:Lnet/minecraft/class_124;
official g
Lvd;g:Ln;
-
NUMBER_COLOR
- Mappings:
Namespace Name Mixin selector named NUMBER_COLOR
Lnet/minecraft/nbt/visitor/NbtTextFormatter;NUMBER_COLOR:Lnet/minecraft/util/Formatting;
intermediary field_27835
Lnet/minecraft/class_5628;field_27835:Lnet/minecraft/class_124;
official h
Lvd;h:Ln;
-
TYPE_SUFFIX_COLOR
- Mappings:
Namespace Name Mixin selector named TYPE_SUFFIX_COLOR
Lnet/minecraft/nbt/visitor/NbtTextFormatter;TYPE_SUFFIX_COLOR:Lnet/minecraft/util/Formatting;
intermediary field_27836
Lnet/minecraft/class_5628;field_27836:Lnet/minecraft/class_124;
official i
Lvd;i:Ln;
-
SIMPLE_NAME
- Mappings:
Namespace Name Mixin selector named SIMPLE_NAME
Lnet/minecraft/nbt/visitor/NbtTextFormatter;SIMPLE_NAME:Ljava/util/regex/Pattern;
intermediary field_27837
Lnet/minecraft/class_5628;field_27837:Ljava/util/regex/Pattern;
official j
Lvd;j:Ljava/util/regex/Pattern;
-
SQUARE_OPEN_BRACKET
- See Also:
- Mappings:
Namespace Name Mixin selector named SQUARE_OPEN_BRACKET
Lnet/minecraft/nbt/visitor/NbtTextFormatter;SQUARE_OPEN_BRACKET:Ljava/lang/String;
intermediary field_33272
Lnet/minecraft/class_5628;field_33272:Ljava/lang/String;
official k
Lvd;k:Ljava/lang/String;
-
SQUARE_CLOSE_BRACKET
- See Also:
- Mappings:
Namespace Name Mixin selector named SQUARE_CLOSE_BRACKET
Lnet/minecraft/nbt/visitor/NbtTextFormatter;SQUARE_CLOSE_BRACKET:Ljava/lang/String;
intermediary field_33273
Lnet/minecraft/class_5628;field_33273:Ljava/lang/String;
official l
Lvd;l:Ljava/lang/String;
-
SEMICOLON
- See Also:
- Mappings:
Namespace Name Mixin selector named SEMICOLON
Lnet/minecraft/nbt/visitor/NbtTextFormatter;SEMICOLON:Ljava/lang/String;
intermediary field_33274
Lnet/minecraft/class_5628;field_33274:Ljava/lang/String;
official m
Lvd;m:Ljava/lang/String;
-
SPACE
- See Also:
- Mappings:
Namespace Name Mixin selector named SPACE
Lnet/minecraft/nbt/visitor/NbtTextFormatter;SPACE:Ljava/lang/String;
intermediary field_33275
Lnet/minecraft/class_5628;field_33275:Ljava/lang/String;
official n
Lvd;n:Ljava/lang/String;
-
CURLY_OPEN_BRACKET
- See Also:
- Mappings:
Namespace Name Mixin selector named CURLY_OPEN_BRACKET
Lnet/minecraft/nbt/visitor/NbtTextFormatter;CURLY_OPEN_BRACKET:Ljava/lang/String;
intermediary field_33276
Lnet/minecraft/class_5628;field_33276:Ljava/lang/String;
official o
Lvd;o:Ljava/lang/String;
-
CURLY_CLOSE_BRACKET
- See Also:
- Mappings:
Namespace Name Mixin selector named CURLY_CLOSE_BRACKET
Lnet/minecraft/nbt/visitor/NbtTextFormatter;CURLY_CLOSE_BRACKET:Ljava/lang/String;
intermediary field_33277
Lnet/minecraft/class_5628;field_33277:Ljava/lang/String;
official p
Lvd;p:Ljava/lang/String;
-
NEW_LINE
- See Also:
- Mappings:
Namespace Name Mixin selector named NEW_LINE
Lnet/minecraft/nbt/visitor/NbtTextFormatter;NEW_LINE:Ljava/lang/String;
intermediary field_33278
Lnet/minecraft/class_5628;field_33278:Ljava/lang/String;
official q
Lvd;q:Ljava/lang/String;
-
COLON_WITH_SPACE
- See Also:
- Mappings:
Namespace Name Mixin selector named COLON_WITH_SPACE
Lnet/minecraft/nbt/visitor/NbtTextFormatter;COLON_WITH_SPACE:Ljava/lang/String;
intermediary field_51922
Lnet/minecraft/class_5628;field_51922:Ljava/lang/String;
official r
Lvd;r:Ljava/lang/String;
-
ENTRY_SEPARATOR
- Mappings:
Namespace Name Mixin selector named ENTRY_SEPARATOR
Lnet/minecraft/nbt/visitor/NbtTextFormatter;ENTRY_SEPARATOR:Ljava/lang/String;
intermediary field_27839
Lnet/minecraft/class_5628;field_27839:Ljava/lang/String;
official s
Lvd;s:Ljava/lang/String;
-
ENTRY_SEPARATOR_WITH_NEW_LINE
- Mappings:
Namespace Name Mixin selector named ENTRY_SEPARATOR_WITH_NEW_LINE
Lnet/minecraft/nbt/visitor/NbtTextFormatter;ENTRY_SEPARATOR_WITH_NEW_LINE:Ljava/lang/String;
intermediary field_51923
Lnet/minecraft/class_5628;field_51923:Ljava/lang/String;
official t
Lvd;t:Ljava/lang/String;
-
ENTRY_SEPARATOR_WITH_SPACE
- Mappings:
Namespace Name Mixin selector named ENTRY_SEPARATOR_WITH_SPACE
Lnet/minecraft/nbt/visitor/NbtTextFormatter;ENTRY_SEPARATOR_WITH_SPACE:Ljava/lang/String;
intermediary field_51924
Lnet/minecraft/class_5628;field_51924:Ljava/lang/String;
official u
Lvd;u:Ljava/lang/String;
-
ELLIPSIS
- Mappings:
Namespace Name Mixin selector named ELLIPSIS
Lnet/minecraft/nbt/visitor/NbtTextFormatter;ELLIPSIS:Lnet/minecraft/text/Text;
intermediary field_51925
Lnet/minecraft/class_5628;field_51925:Lnet/minecraft/class_2561;
official v
Lvd;v:Lwz;
-
BYTE_TYPE_SUFFIX
- Mappings:
Namespace Name Mixin selector named BYTE_TYPE_SUFFIX
Lnet/minecraft/nbt/visitor/NbtTextFormatter;BYTE_TYPE_SUFFIX:Lnet/minecraft/text/Text;
intermediary field_51926
Lnet/minecraft/class_5628;field_51926:Lnet/minecraft/class_2561;
official w
Lvd;w:Lwz;
-
SHORT_TYPE_SUFFIX
- Mappings:
Namespace Name Mixin selector named SHORT_TYPE_SUFFIX
Lnet/minecraft/nbt/visitor/NbtTextFormatter;SHORT_TYPE_SUFFIX:Lnet/minecraft/text/Text;
intermediary field_51927
Lnet/minecraft/class_5628;field_51927:Lnet/minecraft/class_2561;
official x
Lvd;x:Lwz;
-
INT_TYPE_SUFFIX
- Mappings:
Namespace Name Mixin selector named INT_TYPE_SUFFIX
Lnet/minecraft/nbt/visitor/NbtTextFormatter;INT_TYPE_SUFFIX:Lnet/minecraft/text/Text;
intermediary field_51928
Lnet/minecraft/class_5628;field_51928:Lnet/minecraft/class_2561;
official y
Lvd;y:Lwz;
-
LONG_TYPE_SUFFIX
- Mappings:
Namespace Name Mixin selector named LONG_TYPE_SUFFIX
Lnet/minecraft/nbt/visitor/NbtTextFormatter;LONG_TYPE_SUFFIX:Lnet/minecraft/text/Text;
intermediary field_51929
Lnet/minecraft/class_5628;field_51929:Lnet/minecraft/class_2561;
official z
Lvd;z:Lwz;
-
FLOAT_TYPE_SUFFIX
- Mappings:
Namespace Name Mixin selector named FLOAT_TYPE_SUFFIX
Lnet/minecraft/nbt/visitor/NbtTextFormatter;FLOAT_TYPE_SUFFIX:Lnet/minecraft/text/Text;
intermediary field_51918
Lnet/minecraft/class_5628;field_51918:Lnet/minecraft/class_2561;
official A
Lvd;A:Lwz;
-
DOUBLE_TYPE_SUFFIX
- Mappings:
Namespace Name Mixin selector named DOUBLE_TYPE_SUFFIX
Lnet/minecraft/nbt/visitor/NbtTextFormatter;DOUBLE_TYPE_SUFFIX:Lnet/minecraft/text/Text;
intermediary field_51919
Lnet/minecraft/class_5628;field_51919:Lnet/minecraft/class_2561;
official B
Lvd;B:Lwz;
-
ARRAY_BYTE_TYPE_SUFFIX
- Mappings:
Namespace Name Mixin selector named ARRAY_BYTE_TYPE_SUFFIX
Lnet/minecraft/nbt/visitor/NbtTextFormatter;ARRAY_BYTE_TYPE_SUFFIX:Lnet/minecraft/text/Text;
intermediary field_51920
Lnet/minecraft/class_5628;field_51920:Lnet/minecraft/class_2561;
official C
Lvd;C:Lwz;
-
prefix
- Mappings:
Namespace Name Mixin selector named prefix
Lnet/minecraft/nbt/visitor/NbtTextFormatter;prefix:Ljava/lang/String;
intermediary field_27840
Lnet/minecraft/class_5628;field_27840:Ljava/lang/String;
official D
Lvd;D:Ljava/lang/String;
-
indentationLevel
private int indentationLevel- Mappings:
Namespace Name Mixin selector named indentationLevel
Lnet/minecraft/nbt/visitor/NbtTextFormatter;indentationLevel:I
intermediary field_51499
Lnet/minecraft/class_5628;field_51499:I
official E
Lvd;E:I
-
depth
private int depth- Mappings:
Namespace Name Mixin selector named depth
Lnet/minecraft/nbt/visitor/NbtTextFormatter;depth:I
intermediary field_27841
Lnet/minecraft/class_5628;field_27841:I
official F
Lvd;F:I
-
result
- Mappings:
Namespace Name Mixin selector named result
Lnet/minecraft/nbt/visitor/NbtTextFormatter;result:Lnet/minecraft/text/MutableText;
intermediary field_27842
Lnet/minecraft/class_5628;field_27842:Lnet/minecraft/class_5250;
official G
Lvd;G:Lxn;
-
-
Constructor Details
-
NbtTextFormatter
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/nbt/visitor/NbtTextFormatter;<init>(Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_5628;<init>(Ljava/lang/String;)V
official <init>
Lvd;<init>(Ljava/lang/String;)V
-
-
Method Details
-
apply
Returns the textified NBTelement
.- Returns:
- the textified NBT
element
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/nbt/visitor/NbtTextFormatter;apply(Lnet/minecraft/nbt/NbtElement;)Lnet/minecraft/text/Text;
intermediary method_32305
Lnet/minecraft/class_5628;method_32305(Lnet/minecraft/class_2520;)Lnet/minecraft/class_2561;
official a
Lvd;a(Luy;)Lwz;
-
visitString
- Specified by:
visitString
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitString
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitString(Lnet/minecraft/nbt/NbtString;)V
intermediary method_32302
Lnet/minecraft/class_5627;method_32302(Lnet/minecraft/class_2519;)V
official a
Lvc;a(Luw;)V
-
visitByte
- Specified by:
visitByte
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitByte
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitByte(Lnet/minecraft/nbt/NbtByte;)V
intermediary method_32291
Lnet/minecraft/class_5627;method_32291(Lnet/minecraft/class_2481;)V
official a
Lvc;a(Ltz;)V
-
visitShort
- Specified by:
visitShort
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitShort
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitShort(Lnet/minecraft/nbt/NbtShort;)V
intermediary method_32301
Lnet/minecraft/class_5627;method_32301(Lnet/minecraft/class_2516;)V
official a
Lvc;a(Lut;)V
-
visitInt
- Specified by:
visitInt
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitInt
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitInt(Lnet/minecraft/nbt/NbtInt;)V
intermediary method_32297
Lnet/minecraft/class_5627;method_32297(Lnet/minecraft/class_2497;)V
official a
Lvc;a(Lug;)V
-
visitLong
- Specified by:
visitLong
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitLong
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitLong(Lnet/minecraft/nbt/NbtLong;)V
intermediary method_32300
Lnet/minecraft/class_5627;method_32300(Lnet/minecraft/class_2503;)V
official a
Lvc;a(Luj;)V
-
visitFloat
- Specified by:
visitFloat
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitFloat
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitFloat(Lnet/minecraft/nbt/NbtFloat;)V
intermediary method_32295
Lnet/minecraft/class_5627;method_32295(Lnet/minecraft/class_2494;)V
official a
Lvc;a(Lue;)V
-
visitDouble
- Specified by:
visitDouble
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitDouble
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitDouble(Lnet/minecraft/nbt/NbtDouble;)V
intermediary method_32293
Lnet/minecraft/class_5627;method_32293(Lnet/minecraft/class_2489;)V
official a
Lvc;a(Luc;)V
-
visitByteArray
- Specified by:
visitByteArray
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitByteArray
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitByteArray(Lnet/minecraft/nbt/NbtByteArray;)V
intermediary method_32290
Lnet/minecraft/class_5627;method_32290(Lnet/minecraft/class_2479;)V
official a
Lvc;a(Lty;)V
-
visitIntArray
- Specified by:
visitIntArray
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitIntArray
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitIntArray(Lnet/minecraft/nbt/NbtIntArray;)V
intermediary method_32296
Lnet/minecraft/class_5627;method_32296(Lnet/minecraft/class_2495;)V
official a
Lvc;a(Luf;)V
-
visitLongArray
- Specified by:
visitLongArray
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitLongArray
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitLongArray(Lnet/minecraft/nbt/NbtLongArray;)V
intermediary method_32299
Lnet/minecraft/class_5627;method_32299(Lnet/minecraft/class_2501;)V
official a
Lvc;a(Lui;)V
-
visitList
- Specified by:
visitList
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitList
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitList(Lnet/minecraft/nbt/NbtList;)V
intermediary method_32298
Lnet/minecraft/class_5627;method_32298(Lnet/minecraft/class_2499;)V
official a
Lvc;a(Luh;)V
-
visitCompound
- Specified by:
visitCompound
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitCompound
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitCompound(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_32292
Lnet/minecraft/class_5627;method_32292(Lnet/minecraft/class_2487;)V
official a
Lvc;a(Lub;)V
-
formatSubElement
- Mappings:
Namespace Name Mixin selector named formatSubElement
Lnet/minecraft/nbt/visitor/NbtTextFormatter;formatSubElement(Lnet/minecraft/nbt/NbtElement;Z)V
intermediary method_60585
Lnet/minecraft/class_5628;method_60585(Lnet/minecraft/class_2520;Z)V
official a
Lvd;a(Luy;Z)V
-
escapeName
- Mappings:
Namespace Name Mixin selector named escapeName
Lnet/minecraft/nbt/visitor/NbtTextFormatter;escapeName(Ljava/lang/String;)Lnet/minecraft/text/Text;
intermediary method_32304
Lnet/minecraft/class_5628;method_32304(Ljava/lang/String;)Lnet/minecraft/class_2561;
official a
Lvd;a(Ljava/lang/String;)Lwz;
-
visitEnd
- Specified by:
visitEnd
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector named visitEnd
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitEnd(Lnet/minecraft/nbt/NbtEnd;)V
intermediary method_32294
Lnet/minecraft/class_5627;method_32294(Lnet/minecraft/class_2491;)V
official a
Lvc;a(Lud;)V
-