NBTOutputStream

public class NBTOutputStream extends DataOutputStream

An OutputStream for serializing data in the NBT format

Author

Nullicorn

Constructors

Link copied to clipboard
public void NBTOutputStream(OutputStream out, boolean compress)

Functions

Link copied to clipboard
public void close()
Link copied to clipboard
public void flush()
Link copied to clipboard
public static OutputStream nullOutputStream()
Link copied to clipboard
public final int size()
Link copied to clipboard
public synchronized void write(int b)
Link copied to clipboard
public final void writeBoolean(boolean v)
Link copied to clipboard
public final void writeByte(int v)
Link copied to clipboard
public void writeByteArray(Array<byte> bytes)
Write a length-prefixed byte array to the stream
Link copied to clipboard
public final void writeBytes(String s)
Link copied to clipboard
public final void writeChar(int v)
Link copied to clipboard
public final void writeChars(String s)
Link copied to clipboard
public void writeCompound(NBTCompound compound)
Same as writeCompound, but with close set to true.
public void writeCompound(NBTCompound compound, boolean close)
Write a compound tag to the stream
Link copied to clipboard
public final void writeDouble(double v)
Link copied to clipboard
public final void writeFloat(float v)
Link copied to clipboard
public void writeFully(NBTCompound compound)
Serialize an NBT compound and write it to the output stream If control over the root tag's name is needed, use writeFully instead.
public void writeFully(NBTCompound compound, String rootCompoundName)
Serialize an NBT compound and write it to the output stream
Link copied to clipboard
public final void writeInt(int v)
Link copied to clipboard
public void writeIntArray(Array<int> ints)
Write a length-prefixed integer array to the stream
Link copied to clipboard
public void writeList(NBTList list)
Write a length-prefixed list of tags (all of the same type) to the stream
Link copied to clipboard
public final void writeLong(long v)
Link copied to clipboard
public void writeLongArray(Array<long> longs)
Write a length-prefixed long array to the stream
Link copied to clipboard
public final void writeShort(int v)
Link copied to clipboard
public void writeString(String value)
Write an length-prefixed string to the stream
Link copied to clipboard
public void writeTagType(TagType type)
Write a tag ID (1 byte) to the stream
Link copied to clipboard
public final void writeUTF(String str)
Link copied to clipboard
public void writeValue(Object value)
Write a value to the stream without knowing its type