2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_2507 net/minecraft/nbt/NbtIo
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT A set of utility functions for reading, writing, and scanning NBT files.
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10625 read (Ljava/io/DataInput;Lnet/minecraft/class_2505;)Lnet/minecraft/class_2487;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Reads an NBT compound from {@code input}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the NBT compound from the input
|
|
|
|
COMMENT @throws IOException if the IO operation fails or if the root NBT element is
|
|
|
|
COMMENT not a compound
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 0 input
|
2020-06-24 12:34:48 -04:00
|
|
|
ARG 1 tracker
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10626 read (Ljava/io/DataInput;ILnet/minecraft/class_2505;)Lnet/minecraft/class_2520;
|
|
|
|
ARG 0 input
|
|
|
|
ARG 1 depth
|
|
|
|
ARG 2 tracker
|
2020-07-08 13:49:17 -04:00
|
|
|
METHOD method_10627 read (Ljava/io/DataInput;)Lnet/minecraft/class_2487;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Reads an NBT compound from {@code input}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the NBT compound from the input
|
|
|
|
COMMENT @throws IOException if the IO operation fails or if the root NBT element is
|
|
|
|
COMMENT not a compound
|
2020-08-14 16:30:20 -04:00
|
|
|
ARG 0 input
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10628 write (Lnet/minecraft/class_2487;Ljava/io/DataOutput;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Writes the {@code nbt} to {@code file}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IOException if the IO operation fails
|
|
|
|
COMMENT @see #write(NbtCompound, File)
|
|
|
|
ARG 0 nbt
|
2018-11-29 15:36:56 -05:00
|
|
|
ARG 1 output
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10629 readCompressed (Ljava/io/InputStream;)Lnet/minecraft/class_2487;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Reads an NBT compound from Gzip-compressed {@code stream}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the NBT compound from the stream
|
|
|
|
COMMENT @throws IOException if the IO operation fails or if the root NBT element is
|
|
|
|
COMMENT not a compound
|
|
|
|
COMMENT @see #readCompressed(File)
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 0 stream
|
|
|
|
METHOD method_10630 write (Lnet/minecraft/class_2487;Ljava/io/File;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Writes the {@code nbt} to {@code file}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IOException if the IO operation fails
|
|
|
|
COMMENT @see #write(NbtCompound, DataOutput)
|
|
|
|
ARG 0 nbt
|
2018-11-29 15:36:56 -05:00
|
|
|
ARG 1 file
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10631 write (Lnet/minecraft/class_2520;Ljava/io/DataOutput;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
ARG 0 nbt
|
2018-11-29 15:36:56 -05:00
|
|
|
ARG 1 output
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10633 read (Ljava/io/File;)Lnet/minecraft/class_2487;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Reads an NBT compound from {@code file}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the NBT compound from the file, or {@code null} if the file does not exist
|
|
|
|
COMMENT @throws IOException if the IO operation fails or if the root NBT element is
|
|
|
|
COMMENT not a compound
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 0 file
|
|
|
|
METHOD method_10634 writeCompressed (Lnet/minecraft/class_2487;Ljava/io/OutputStream;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Writes the Gzip-compressed {@code nbt} to {@code stream}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IOException if the IO operation fails
|
|
|
|
COMMENT @see #writeCompressed(NbtCompound, File)
|
|
|
|
ARG 0 nbt
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 1 stream
|
2020-08-14 16:30:20 -04:00
|
|
|
METHOD method_30613 readCompressed (Ljava/io/File;)Lnet/minecraft/class_2487;
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Reads an NBT compound from Gzip-compressed {@code file}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the NBT compound from the file
|
|
|
|
COMMENT @throws IOException if the IO operation fails or if the root NBT element is
|
|
|
|
COMMENT not a compound
|
|
|
|
COMMENT @see #readCompressed(InputStream)
|
2020-08-14 16:30:20 -04:00
|
|
|
ARG 0 file
|
|
|
|
METHOD method_30614 writeCompressed (Lnet/minecraft/class_2487;Ljava/io/File;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Writes the Gzip-compressed {@code nbt} to {@code file}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IOException if the IO operation fails
|
|
|
|
COMMENT @see #writeCompressed(NbtCompound, OutputStream)
|
|
|
|
ARG 0 nbt
|
2020-08-14 16:30:20 -04:00
|
|
|
ARG 1 file
|
2022-02-09 06:33:27 -05:00
|
|
|
METHOD method_39855 scan (Ljava/io/DataInput;Lnet/minecraft/class_6836;)V
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT Scans the NBT input using {@code scanner}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @apiNote This method does not return the scan result; the user is expected
|
|
|
|
COMMENT to call the appropriate method of the {@link NbtScanner} subclasses, such as
|
|
|
|
COMMENT {@link net.minecraft.nbt.scanner.NbtCollector#getRoot()}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IOException if the IO operation fails
|
2021-11-19 05:48:18 -05:00
|
|
|
ARG 0 input
|
2022-02-09 06:33:27 -05:00
|
|
|
ARG 1 scanner
|
|
|
|
METHOD method_40057 scanCompressed (Ljava/io/File;Lnet/minecraft/class_6836;)V
|
|
|
|
COMMENT Scans the compressed NBT file using {@code scanner}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @apiNote This method does not return the scan result; the user is expected
|
|
|
|
COMMENT to call the appropriate method of the {@link NbtScanner} subclasses, such as
|
|
|
|
COMMENT {@link net.minecraft.nbt.scanner.NbtCollector#getRoot()}.
|
|
|
|
COMMENT
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT @throws IOException if the IO operation fails
|
2022-02-09 06:33:27 -05:00
|
|
|
COMMENT @see #scanCompressed(InputStream, NbtScanner)
|
|
|
|
ARG 0 file
|
|
|
|
ARG 1 scanner
|
|
|
|
METHOD method_40058 scanCompressed (Ljava/io/InputStream;Lnet/minecraft/class_6836;)V
|
|
|
|
COMMENT Scans the compressed NBT stream using {@code scanner}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @apiNote This method does not return the scan result; the user is expected
|
|
|
|
COMMENT to call the appropriate method of the {@link NbtScanner} subclasses, such as
|
|
|
|
COMMENT {@link net.minecraft.nbt.scanner.NbtCollector#getRoot()}.
|
|
|
|
COMMENT
|
2022-05-11 14:28:23 -04:00
|
|
|
COMMENT @throws IOException if the IO operation fails
|
2022-02-09 06:33:27 -05:00
|
|
|
COMMENT @see #scanCompressed(File, NbtScanner)
|
|
|
|
ARG 0 stream
|
|
|
|
ARG 1 scanner
|
|
|
|
METHOD method_40059 decompress (Ljava/io/InputStream;)Ljava/io/DataInputStream;
|
|
|
|
COMMENT {@return a new input stream that decompresses the input {@code stream}}
|
|
|
|
ARG 0 stream
|