public interface NbtReadWrapper
| Modifier and Type | Method and Description |
|---|---|
INbtReader |
getReader() |
default INbtTag |
read(java.io.DataInput in,
NbtReadTracker readTracker)
Read a Nbt tag from a
DataInput. |
default INbtTag |
read(java.io.InputStream is,
boolean compressed,
NbtReadTracker readTracker)
Read a Nbt tag from an input stream.
|
default INbtTag |
readCompressedFile(java.io.File f,
NbtReadTracker readTracker)
Read a compressed Nbt tag from a file.
|
default INbtTag |
readFile(java.io.File f,
boolean compressed,
NbtReadTracker readTracker)
Read a Nbt tag from a file.
|
default INbtTag |
readFile(java.io.File f,
NbtReadTracker readTracker)
Read an uncompressed Nbt tag from a file.
|
INbtReader getReader()
default INbtTag readFile(java.io.File f, NbtReadTracker readTracker) throws java.io.IOException
f - The file to read fromreadTracker - The read tracker to usejava.io.IOException - If an I/O error occursdefault INbtTag readCompressedFile(java.io.File f, NbtReadTracker readTracker) throws java.io.IOException
f - The file to read fromreadTracker - The read tracker to usejava.io.IOException - If an I/O error occursdefault INbtTag readFile(java.io.File f, boolean compressed, NbtReadTracker readTracker) throws java.io.IOException
f - The file to read fromcompressed - Whether the file is compressed or notreadTracker - The read tracker to usejava.io.IOException - If an I/O error occursdefault INbtTag read(java.io.InputStream is, boolean compressed, NbtReadTracker readTracker) throws java.io.IOException
is - The input stream to read fromcompressed - Whether the input stream is compressed or notreadTracker - The read tracker to usejava.io.IOException - If an I/O error occursdefault INbtTag read(java.io.DataInput in, NbtReadTracker readTracker) throws java.io.IOException
DataInput.in - The data input to read fromreadTracker - The read tracker to usejava.io.IOException - If an I/O error occurs