@ParametersAreNonnullByDefault
public interface NbtWriteWrapper
| Modifier and Type | Method and Description |
|---|---|
INbtWriter |
getWriter() |
default void |
write(java.io.DataOutput out,
java.lang.String name,
INbtTag tag)
Write a Nbt tag to a
DataOutput. |
default void |
write(java.io.OutputStream os,
java.lang.String name,
INbtTag tag,
boolean compressed)
Write a Nbt tag to an output stream.
|
default void |
writeCompressedFile(java.io.File f,
java.lang.String name,
INbtTag tag)
Write a compressed Nbt tag to a file.
|
default void |
writeFile(java.io.File f,
java.lang.String name,
INbtTag tag)
Write and uncompressed Nbt tag to a file.
|
default void |
writeFile(java.io.File f,
java.lang.String name,
INbtTag tag,
boolean compressed)
Write a Nbt tag to a file.
|
default void |
writeUnnamed(java.io.DataOutput out,
INbtTag tag)
Write an unnamed Nbt tag to a
DataOutput. |
INbtWriter getWriter()
default void writeFile(java.io.File f,
java.lang.String name,
INbtTag tag)
throws java.io.IOException
f - The file to write toname - The name of the tag (should be "" if not required)tag - The tag to writejava.io.IOException - If an I/O error occursdefault void writeCompressedFile(java.io.File f,
java.lang.String name,
INbtTag tag)
throws java.io.IOException
f - The file to write toname - The name of the tag (should be "" if not required)tag - The tag to writejava.io.IOException - If an I/O error occursdefault void writeFile(java.io.File f,
java.lang.String name,
INbtTag tag,
boolean compressed)
throws java.io.IOException
f - The file to write toname - The name of the tag (should be "" if not required)tag - The tag to writecompressed - Whether the file should be compressed or notjava.io.IOException - If an I/O error occurs@WillClose
default void write(java.io.OutputStream os,
java.lang.String name,
INbtTag tag,
boolean compressed)
throws java.io.IOException
os - The output stream to write toname - The name of the tag (should be "" if not required)tag - The tag to writecompressed - Whether the output stream should be compressed or notjava.io.IOException - If an I/O error occurs@WillNotClose
default void write(java.io.DataOutput out,
java.lang.String name,
INbtTag tag)
throws java.io.IOException
DataOutput.out - The data output to write toname - The name of the tag (should be "" if not required)tag - The tag to writejava.io.IOException - If an I/O error occurs@WillNotClose
default void writeUnnamed(java.io.DataOutput out,
INbtTag tag)
throws java.io.IOException
DataOutput.write(DataOutput, String, INbtTag) instead!out - The data output to write totag - The tag to writejava.io.IOException - If an I/O error occurs