Package net.minecraft.nbt.visitor
Class StringNbtWriter
java.lang.Object
net.minecraft.nbt.visitor.StringNbtWriter
- All Implemented Interfaces:
NbtElementVisitor
A simple converter to turn NBT into single-line SNBT. The output may be parsed back into binary NBT.
- Mappings:
Namespace Name official rj
intermediary net/minecraft/class_5626
named net/minecraft/nbt/visitor/StringNbtWriter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(NbtElement element) Returns the stringified NBTelement
.protected static String
escapeName
(String name) 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
-
SIMPLE_NAME
- Mappings:
Namespace Name Mixin selector official a
Lrj;a:Ljava/util/regex/Pattern;
intermediary field_27829
Lnet/minecraft/class_5626;field_27829:Ljava/util/regex/Pattern;
named SIMPLE_NAME
Lnet/minecraft/nbt/visitor/StringNbtWriter;SIMPLE_NAME:Ljava/util/regex/Pattern;
-
result
- Mappings:
Namespace Name Mixin selector official b
Lrj;b:Ljava/lang/StringBuilder;
intermediary field_27830
Lnet/minecraft/class_5626;field_27830:Ljava/lang/StringBuilder;
named result
Lnet/minecraft/nbt/visitor/StringNbtWriter;result:Ljava/lang/StringBuilder;
-
-
Constructor Details
-
StringNbtWriter
public StringNbtWriter()
-
-
Method Details
-
apply
Returns the stringified NBTelement
.- Returns:
- the stringified NBT
element
- Mappings:
Namespace Name Mixin selector official a
Lrj;a(Lrk;)Ljava/lang/String;
intermediary method_32288
Lnet/minecraft/class_5626;method_32288(Lnet/minecraft/class_2520;)Ljava/lang/String;
named apply
Lnet/minecraft/nbt/visitor/StringNbtWriter;apply(Lnet/minecraft/nbt/NbtElement;)Ljava/lang/String;
-
visitString
- Specified by:
visitString
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lri;)V
intermediary method_32302
Lnet/minecraft/class_5627;method_32302(Lnet/minecraft/class_2519;)V
named visitString
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitString(Lnet/minecraft/nbt/NbtString;)V
-
visitByte
- Specified by:
visitByte
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lqp;)V
intermediary method_32291
Lnet/minecraft/class_5627;method_32291(Lnet/minecraft/class_2481;)V
named visitByte
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitByte(Lnet/minecraft/nbt/NbtByte;)V
-
visitShort
- Specified by:
visitShort
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lrf;)V
intermediary method_32301
Lnet/minecraft/class_5627;method_32301(Lnet/minecraft/class_2516;)V
named visitShort
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitShort(Lnet/minecraft/nbt/NbtShort;)V
-
visitInt
- Specified by:
visitInt
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lqw;)V
intermediary method_32297
Lnet/minecraft/class_5627;method_32297(Lnet/minecraft/class_2497;)V
named visitInt
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitInt(Lnet/minecraft/nbt/NbtInt;)V
-
visitLong
- Specified by:
visitLong
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lqz;)V
intermediary method_32300
Lnet/minecraft/class_5627;method_32300(Lnet/minecraft/class_2503;)V
named visitLong
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitLong(Lnet/minecraft/nbt/NbtLong;)V
-
visitFloat
- Specified by:
visitFloat
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lqu;)V
intermediary method_32295
Lnet/minecraft/class_5627;method_32295(Lnet/minecraft/class_2494;)V
named visitFloat
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitFloat(Lnet/minecraft/nbt/NbtFloat;)V
-
visitDouble
- Specified by:
visitDouble
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lqs;)V
intermediary method_32293
Lnet/minecraft/class_5627;method_32293(Lnet/minecraft/class_2489;)V
named visitDouble
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitDouble(Lnet/minecraft/nbt/NbtDouble;)V
-
visitByteArray
- Specified by:
visitByteArray
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lqo;)V
intermediary method_32290
Lnet/minecraft/class_5627;method_32290(Lnet/minecraft/class_2479;)V
named visitByteArray
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitByteArray(Lnet/minecraft/nbt/NbtByteArray;)V
-
visitIntArray
- Specified by:
visitIntArray
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lqv;)V
intermediary method_32296
Lnet/minecraft/class_5627;method_32296(Lnet/minecraft/class_2495;)V
named visitIntArray
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitIntArray(Lnet/minecraft/nbt/NbtIntArray;)V
-
visitLongArray
- Specified by:
visitLongArray
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lqy;)V
intermediary method_32299
Lnet/minecraft/class_5627;method_32299(Lnet/minecraft/class_2501;)V
named visitLongArray
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitLongArray(Lnet/minecraft/nbt/NbtLongArray;)V
-
visitList
- Specified by:
visitList
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lqx;)V
intermediary method_32298
Lnet/minecraft/class_5627;method_32298(Lnet/minecraft/class_2499;)V
named visitList
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitList(Lnet/minecraft/nbt/NbtList;)V
-
visitCompound
- Specified by:
visitCompound
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lqr;)V
intermediary method_32292
Lnet/minecraft/class_5627;method_32292(Lnet/minecraft/class_2487;)V
named visitCompound
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitCompound(Lnet/minecraft/nbt/NbtCompound;)V
-
escapeName
- Mappings:
Namespace Name Mixin selector official a
Lrj;a(Ljava/lang/String;)Ljava/lang/String;
intermediary method_32287
Lnet/minecraft/class_5626;method_32287(Ljava/lang/String;)Ljava/lang/String;
named escapeName
Lnet/minecraft/nbt/visitor/StringNbtWriter;escapeName(Ljava/lang/String;)Ljava/lang/String;
-
visitEnd
- Specified by:
visitEnd
in interfaceNbtElementVisitor
- Mappings:
Namespace Name Mixin selector official a
Lro;a(Lqt;)V
intermediary method_32294
Lnet/minecraft/class_5627;method_32294(Lnet/minecraft/class_2491;)V
named visitEnd
Lnet/minecraft/nbt/visitor/NbtElementVisitor;visitEnd(Lnet/minecraft/nbt/NbtEnd;)V
-