Package net.minecraft.nbt
Class NbtIo
java.lang.Object
net.minecraft.nbt.NbtIo
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static DataOutputStreamcreateCompressorStream(OutputStream p_309656_) private static DataInputStreamcreateDecompressorStream(InputStream p_202494_) static voidparse(DataInput p_197510_, StreamTagVisitor p_197511_, NbtAccounter p_302331_) static voidparseCompressed(InputStream p_202491_, StreamTagVisitor p_202492_, NbtAccounter p_302334_) static voidparseCompressed(Path p_309564_, StreamTagVisitor p_202489_, NbtAccounter p_302378_) static CompoundTagstatic CompoundTagread(DataInput p_128935_, NbtAccounter p_128936_) static CompoundTagstatic TagreadAnyTag(DataInput p_294481_, NbtAccounter p_294287_) static CompoundTagreadCompressed(InputStream p_307406_, NbtAccounter p_307479_) static CompoundTagreadCompressed(Path p_309661_, NbtAccounter p_307351_) private static TagreadTagSafe(DataInput p_295228_, NbtAccounter p_294806_, byte p_294992_) private static TagreadUnnamedTag(DataInput p_128931_, NbtAccounter p_128933_) static voidwrite(CompoundTag p_128942_, DataOutput p_128943_) static voidwrite(CompoundTag p_128956_, Path p_309549_) static voidwriteAnyTag(Tag p_294166_, DataOutput p_295552_) static voidwriteCompressed(CompoundTag p_128948_, OutputStream p_128949_) static voidwriteCompressed(CompoundTag p_128945_, Path p_309705_) static voidwriteUnnamedTag(Tag p_128951_, DataOutput p_128952_) static voidwriteUnnamedTagWithFallback(Tag p_311861_, DataOutput p_312306_)
-
Field Details
-
SYNC_OUTPUT_OPTIONS
-
-
Constructor Details
-
NbtIo
public NbtIo()
-
-
Method Details
-
readCompressed
- Throws:
IOException
-
createDecompressorStream
- Throws:
IOException
-
createCompressorStream
- Throws:
IOException
-
readCompressed
public static CompoundTag readCompressed(InputStream p_307406_, NbtAccounter p_307479_) throws IOException - Throws:
IOException
-
parseCompressed
public static void parseCompressed(Path p_309564_, StreamTagVisitor p_202489_, NbtAccounter p_302378_) throws IOException - Throws:
IOException
-
parseCompressed
public static void parseCompressed(InputStream p_202491_, StreamTagVisitor p_202492_, NbtAccounter p_302334_) throws IOException - Throws:
IOException
-
writeCompressed
- Throws:
IOException
-
writeCompressed
public static void writeCompressed(CompoundTag p_128948_, OutputStream p_128949_) throws IOException - Throws:
IOException
-
write
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-
parse
public static void parse(DataInput p_197510_, StreamTagVisitor p_197511_, NbtAccounter p_302331_) throws IOException - Throws:
IOException
-
readAnyTag
- Throws:
IOException
-
writeAnyTag
- Throws:
IOException
-
writeUnnamedTag
- Throws:
IOException
-
writeUnnamedTagWithFallback
public static void writeUnnamedTagWithFallback(Tag p_311861_, DataOutput p_312306_) throws IOException - Throws:
IOException
-
readUnnamedTag
- Throws:
IOException
-
readTagSafe
-