Package net.minecraft.nbt
Class NbtIo
java.lang.Object
net.minecraft.nbt.NbtIo
- Mappings:
Namespace Name official ou
intermediary net/minecraft/class_2507
named net/minecraft/nbt/NbtIo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static DataInputStream
decompress
(InputStream stream) Returns a new input stream that decompresses the inputstream
.static NbtCompound
private static NbtElement
read
(DataInput input, int depth, NbtTagSizeTracker tracker) static NbtCompound
read
(DataInput input, NbtTagSizeTracker tracker) static @Nullable NbtCompound
static NbtCompound
readCompressed
(File file) static NbtCompound
readCompressed
(InputStream stream) static void
scan
(DataInput input, NbtScanner scanner) static void
scanCompressed
(File file, NbtScanner scanner) Scans the compressed NBT file usingscanner
.static void
scanCompressed
(InputStream stream, NbtScanner scanner) Scans the compressed NBT stream usingscanner
.static void
write
(NbtCompound compound, DataOutput output) static void
write
(NbtCompound compound, File file) static void
write
(NbtElement element, DataOutput output) static void
writeCompressed
(NbtCompound compound, File file) static void
writeCompressed
(NbtCompound compound, OutputStream stream)
-
Constructor Details
-
NbtIo
public NbtIo()
-
-
Method Details
-
readCompressed
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lou;a(Ljava/io/File;)Lok;
intermediary method_30613
Lnet/minecraft/class_2507;method_30613(Ljava/io/File;)Lnet/minecraft/class_2487;
named readCompressed
Lnet/minecraft/nbt/NbtIo;readCompressed(Ljava/io/File;)Lnet/minecraft/nbt/NbtCompound;
-
decompress
Returns a new input stream that decompresses the inputstream
.- Returns:
- a new input stream that decompresses the input
stream
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lou;b(Ljava/io/InputStream;)Ljava/io/DataInputStream;
intermediary method_40059
Lnet/minecraft/class_2507;method_40059(Ljava/io/InputStream;)Ljava/io/DataInputStream;
named decompress
Lnet/minecraft/nbt/NbtIo;decompress(Ljava/io/InputStream;)Ljava/io/DataInputStream;
-
readCompressed
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lou;a(Ljava/io/InputStream;)Lok;
intermediary method_10629
Lnet/minecraft/class_2507;method_10629(Ljava/io/InputStream;)Lnet/minecraft/class_2487;
named readCompressed
Lnet/minecraft/nbt/NbtIo;readCompressed(Ljava/io/InputStream;)Lnet/minecraft/nbt/NbtCompound;
-
scanCompressed
Scans the compressed NBT file usingscanner
.- Throws:
IOException
- See Also:
- API Note:
- This method does not return the scan result; the user is expected
to call the appropriate method of the
NbtScanner
subclasses, such asNbtCollector.getRoot()
. - Mappings:
Namespace Name Mixin selector official a
Lou;a(Ljava/io/File;Lpa;)V
intermediary method_40057
Lnet/minecraft/class_2507;method_40057(Ljava/io/File;Lnet/minecraft/class_6836;)V
named scanCompressed
Lnet/minecraft/nbt/NbtIo;scanCompressed(Ljava/io/File;Lnet/minecraft/nbt/scanner/NbtScanner;)V
-
scanCompressed
Scans the compressed NBT stream usingscanner
.- Throws:
IOException
- See Also:
- API Note:
- This method does not return the scan result; the user is expected
to call the appropriate method of the
NbtScanner
subclasses, such asNbtCollector.getRoot()
. - Mappings:
Namespace Name Mixin selector official a
Lou;a(Ljava/io/InputStream;Lpa;)V
intermediary method_40058
Lnet/minecraft/class_2507;method_40058(Ljava/io/InputStream;Lnet/minecraft/class_6836;)V
named scanCompressed
Lnet/minecraft/nbt/NbtIo;scanCompressed(Ljava/io/InputStream;Lnet/minecraft/nbt/scanner/NbtScanner;)V
-
writeCompressed
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lou;a(Lok;Ljava/io/File;)V
intermediary method_30614
Lnet/minecraft/class_2507;method_30614(Lnet/minecraft/class_2487;Ljava/io/File;)V
named writeCompressed
Lnet/minecraft/nbt/NbtIo;writeCompressed(Lnet/minecraft/nbt/NbtCompound;Ljava/io/File;)V
-
writeCompressed
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lou;a(Lok;Ljava/io/OutputStream;)V
intermediary method_10634
Lnet/minecraft/class_2507;method_10634(Lnet/minecraft/class_2487;Ljava/io/OutputStream;)V
named writeCompressed
Lnet/minecraft/nbt/NbtIo;writeCompressed(Lnet/minecraft/nbt/NbtCompound;Ljava/io/OutputStream;)V
-
write
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lou;b(Lok;Ljava/io/File;)V
intermediary method_10630
Lnet/minecraft/class_2507;method_10630(Lnet/minecraft/class_2487;Ljava/io/File;)V
named write
Lnet/minecraft/nbt/NbtIo;write(Lnet/minecraft/nbt/NbtCompound;Ljava/io/File;)V
-
read
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lou;b(Ljava/io/File;)Lok;
intermediary method_10633
Lnet/minecraft/class_2507;method_10633(Ljava/io/File;)Lnet/minecraft/class_2487;
named read
Lnet/minecraft/nbt/NbtIo;read(Ljava/io/File;)Lnet/minecraft/nbt/NbtCompound;
-
read
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lou;a(Ljava/io/DataInput;)Lok;
intermediary method_10627
Lnet/minecraft/class_2507;method_10627(Ljava/io/DataInput;)Lnet/minecraft/class_2487;
named read
Lnet/minecraft/nbt/NbtIo;read(Ljava/io/DataInput;)Lnet/minecraft/nbt/NbtCompound;
-
read
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lou;a(Ljava/io/DataInput;Lot;)Lok;
intermediary method_10625
Lnet/minecraft/class_2507;method_10625(Ljava/io/DataInput;Lnet/minecraft/class_2505;)Lnet/minecraft/class_2487;
named read
Lnet/minecraft/nbt/NbtIo;read(Ljava/io/DataInput;Lnet/minecraft/nbt/NbtTagSizeTracker;)Lnet/minecraft/nbt/NbtCompound;
-
write
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lou;a(Lok;Ljava/io/DataOutput;)V
intermediary method_10628
Lnet/minecraft/class_2507;method_10628(Lnet/minecraft/class_2487;Ljava/io/DataOutput;)V
named write
Lnet/minecraft/nbt/NbtIo;write(Lnet/minecraft/nbt/NbtCompound;Ljava/io/DataOutput;)V
-
scan
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lou;a(Ljava/io/DataInput;Lpa;)V
intermediary method_39855
Lnet/minecraft/class_2507;method_39855(Ljava/io/DataInput;Lnet/minecraft/class_6836;)V
named scan
Lnet/minecraft/nbt/NbtIo;scan(Ljava/io/DataInput;Lnet/minecraft/nbt/scanner/NbtScanner;)V
-
write
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lou;a(Lpd;Ljava/io/DataOutput;)V
intermediary method_10631
Lnet/minecraft/class_2507;method_10631(Lnet/minecraft/class_2520;Ljava/io/DataOutput;)V
named write
Lnet/minecraft/nbt/NbtIo;write(Lnet/minecraft/nbt/NbtElement;Ljava/io/DataOutput;)V
-
read
private static NbtElement read(DataInput input, int depth, NbtTagSizeTracker tracker) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lou;a(Ljava/io/DataInput;ILot;)Lpd;
intermediary method_10626
Lnet/minecraft/class_2507;method_10626(Ljava/io/DataInput;ILnet/minecraft/class_2505;)Lnet/minecraft/class_2520;
named read
Lnet/minecraft/nbt/NbtIo;read(Ljava/io/DataInput;ILnet/minecraft/nbt/NbtTagSizeTracker;)Lnet/minecraft/nbt/NbtElement;
-