Class NBT
java.lang.Object
org.moddingx.launcherlib.nbt.NBT
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA compression method used to read and write NBT. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Tagread(InputStream in) Reads GZIP compressed NBT from the givenInputStream.static Tagread(InputStream in, NBT.Compression compression) Reads NBT from the givenInputStream.static voidwrite(Tag tag, OutputStream out) Writes GZIP compressed NBT to the givenOutputStream.static voidwrite(Tag tag, OutputStream out, NBT.Compression compression) Writes NBT to the givenOutputStream.
-
Constructor Details
-
NBT
public NBT()
-
-
Method Details
-
read
Reads GZIP compressed NBT from the givenInputStream. This willclosethe stream.- Throws:
IOException
-
read
Reads NBT from the givenInputStream. This willclosethe stream.- Throws:
IOException
-
write
Writes GZIP compressed NBT to the givenOutputStream. This willclosethe stream.- Throws:
IOException
-
write
Writes NBT to the givenOutputStream. This willclosethe stream.- Throws:
IOException
-