Package net.minecraft.nbt
Class NbtIo
java.lang.Object
net.minecraft.nbt.NbtIo
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static DataOutputStream
createCompressorStream
(OutputStream p_310411_) private static DataInputStream
createDecompressorStream
(InputStream p_202494_) static void
parse
(DataInput p_197510_, StreamTagVisitor p_197511_, NbtAccounter p_301755_) static void
parseCompressed
(InputStream p_202491_, StreamTagVisitor p_202492_, NbtAccounter p_301762_) static void
parseCompressed
(Path p_310443_, StreamTagVisitor p_202489_, NbtAccounter p_301727_) static CompoundTag
static CompoundTag
read
(DataInput p_128935_, NbtAccounter p_128936_) static CompoundTag
static Tag
readAnyTag
(DataInput p_301023_, NbtAccounter p_299704_) static CompoundTag
readCompressed
(InputStream p_313037_, NbtAccounter p_312435_) static CompoundTag
readCompressed
(Path p_310303_, NbtAccounter p_311830_) private static Tag
readTagSafe
(DataInput p_299672_, NbtAccounter p_299171_, byte p_300451_) private static Tag
readUnnamedTag
(DataInput p_128931_, NbtAccounter p_128933_) static void
write
(CompoundTag p_128942_, DataOutput p_128943_) static void
write
(CompoundTag p_128956_, Path p_311890_) static void
writeAnyTag
(Tag p_300328_, DataOutput p_297970_) static void
writeCompressed
(CompoundTag p_128948_, OutputStream p_128949_) static void
writeCompressed
(CompoundTag p_128945_, Path p_310344_) static void
writeUnnamedTag
(Tag p_128951_, DataOutput p_128952_) static void
writeUnnamedTagWithFallback
(Tag p_310490_, DataOutput p_311501_)
-
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_313037_, NbtAccounter p_312435_) throws IOException - Throws:
IOException
-
parseCompressed
public static void parseCompressed(Path p_310443_, StreamTagVisitor p_202489_, NbtAccounter p_301727_) throws IOException - Throws:
IOException
-
parseCompressed
public static void parseCompressed(InputStream p_202491_, StreamTagVisitor p_202492_, NbtAccounter p_301762_) 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_301755_) throws IOException - Throws:
IOException
-
readAnyTag
- Throws:
IOException
-
writeAnyTag
- Throws:
IOException
-
writeUnnamedTag
- Throws:
IOException
-
writeUnnamedTagWithFallback
public static void writeUnnamedTagWithFallback(Tag p_310490_, DataOutput p_311501_) throws IOException - Throws:
IOException
-
readUnnamedTag
- Throws:
IOException
-
readTagSafe
-