Package net.minecraft.nbt
Class NbtIo
java.lang.Object
net.minecraft.nbt.NbtIo
- Mappings:
Namespace Name official ouintermediary net/minecraft/class_2507named net/minecraft/nbt/NbtIo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static DataInputStreamdecompress(InputStream stream) Returns a new input stream that decompresses the inputstream.static NbtCompoundprivate static NbtElementread(DataInput input, int depth, NbtTagSizeTracker tracker) static NbtCompoundread(DataInput input, NbtTagSizeTracker tracker) static @Nullable NbtCompoundstatic NbtCompoundreadCompressed(File file) static NbtCompoundreadCompressed(InputStream stream) static voidscan(DataInput input, NbtScanner scanner) static voidscanCompressed(File file, NbtScanner scanner) Scans the compressed NBT file usingscanner.static voidscanCompressed(InputStream stream, NbtScanner scanner) Scans the compressed NBT stream usingscanner.static voidwrite(NbtCompound compound, DataOutput output) static voidwrite(NbtCompound compound, File file) static voidwrite(NbtElement element, DataOutput output) static voidwriteCompressed(NbtCompound compound, File file) static voidwriteCompressed(NbtCompound compound, OutputStream stream)
-
Constructor Details
-
NbtIo
public NbtIo()
-
-
Method Details
-
readCompressed
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLou;a(Ljava/io/File;)Lok;intermediary method_30613Lnet/minecraft/class_2507;method_30613(Ljava/io/File;)Lnet/minecraft/class_2487;named readCompressedLnet/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 bLou;b(Ljava/io/InputStream;)Ljava/io/DataInputStream;intermediary method_40059Lnet/minecraft/class_2507;method_40059(Ljava/io/InputStream;)Ljava/io/DataInputStream;named decompressLnet/minecraft/nbt/NbtIo;decompress(Ljava/io/InputStream;)Ljava/io/DataInputStream;
-
readCompressed
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLou;a(Ljava/io/InputStream;)Lok;intermediary method_10629Lnet/minecraft/class_2507;method_10629(Ljava/io/InputStream;)Lnet/minecraft/class_2487;named readCompressedLnet/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
NbtScannersubclasses, such asNbtCollector.getRoot(). - Mappings:
Namespace Name Mixin selector official aLou;a(Ljava/io/File;Lpa;)Vintermediary method_40057Lnet/minecraft/class_2507;method_40057(Ljava/io/File;Lnet/minecraft/class_6836;)Vnamed scanCompressedLnet/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
NbtScannersubclasses, such asNbtCollector.getRoot(). - Mappings:
Namespace Name Mixin selector official aLou;a(Ljava/io/InputStream;Lpa;)Vintermediary method_40058Lnet/minecraft/class_2507;method_40058(Ljava/io/InputStream;Lnet/minecraft/class_6836;)Vnamed scanCompressedLnet/minecraft/nbt/NbtIo;scanCompressed(Ljava/io/InputStream;Lnet/minecraft/nbt/scanner/NbtScanner;)V
-
writeCompressed
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLou;a(Lok;Ljava/io/File;)Vintermediary method_30614Lnet/minecraft/class_2507;method_30614(Lnet/minecraft/class_2487;Ljava/io/File;)Vnamed writeCompressedLnet/minecraft/nbt/NbtIo;writeCompressed(Lnet/minecraft/nbt/NbtCompound;Ljava/io/File;)V
-
writeCompressed
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLou;a(Lok;Ljava/io/OutputStream;)Vintermediary method_10634Lnet/minecraft/class_2507;method_10634(Lnet/minecraft/class_2487;Ljava/io/OutputStream;)Vnamed writeCompressedLnet/minecraft/nbt/NbtIo;writeCompressed(Lnet/minecraft/nbt/NbtCompound;Ljava/io/OutputStream;)V
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLou;b(Lok;Ljava/io/File;)Vintermediary method_10630Lnet/minecraft/class_2507;method_10630(Lnet/minecraft/class_2487;Ljava/io/File;)Vnamed writeLnet/minecraft/nbt/NbtIo;write(Lnet/minecraft/nbt/NbtCompound;Ljava/io/File;)V
-
read
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLou;b(Ljava/io/File;)Lok;intermediary method_10633Lnet/minecraft/class_2507;method_10633(Ljava/io/File;)Lnet/minecraft/class_2487;named readLnet/minecraft/nbt/NbtIo;read(Ljava/io/File;)Lnet/minecraft/nbt/NbtCompound;
-
read
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLou;a(Ljava/io/DataInput;)Lok;intermediary method_10627Lnet/minecraft/class_2507;method_10627(Ljava/io/DataInput;)Lnet/minecraft/class_2487;named readLnet/minecraft/nbt/NbtIo;read(Ljava/io/DataInput;)Lnet/minecraft/nbt/NbtCompound;
-
read
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLou;a(Ljava/io/DataInput;Lot;)Lok;intermediary method_10625Lnet/minecraft/class_2507;method_10625(Ljava/io/DataInput;Lnet/minecraft/class_2505;)Lnet/minecraft/class_2487;named readLnet/minecraft/nbt/NbtIo;read(Ljava/io/DataInput;Lnet/minecraft/nbt/NbtTagSizeTracker;)Lnet/minecraft/nbt/NbtCompound;
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLou;a(Lok;Ljava/io/DataOutput;)Vintermediary method_10628Lnet/minecraft/class_2507;method_10628(Lnet/minecraft/class_2487;Ljava/io/DataOutput;)Vnamed writeLnet/minecraft/nbt/NbtIo;write(Lnet/minecraft/nbt/NbtCompound;Ljava/io/DataOutput;)V
-
scan
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLou;a(Ljava/io/DataInput;Lpa;)Vintermediary method_39855Lnet/minecraft/class_2507;method_39855(Ljava/io/DataInput;Lnet/minecraft/class_6836;)Vnamed scanLnet/minecraft/nbt/NbtIo;scan(Ljava/io/DataInput;Lnet/minecraft/nbt/scanner/NbtScanner;)V
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLou;a(Lpd;Ljava/io/DataOutput;)Vintermediary method_10631Lnet/minecraft/class_2507;method_10631(Lnet/minecraft/class_2520;Ljava/io/DataOutput;)Vnamed writeLnet/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 aLou;a(Ljava/io/DataInput;ILot;)Lpd;intermediary method_10626Lnet/minecraft/class_2507;method_10626(Ljava/io/DataInput;ILnet/minecraft/class_2505;)Lnet/minecraft/class_2520;named readLnet/minecraft/nbt/NbtIo;read(Ljava/io/DataInput;ILnet/minecraft/nbt/NbtTagSizeTracker;)Lnet/minecraft/nbt/NbtElement;
-