public class NBTOutputStream
extends java.io.DataOutputStream
| Constructor and Description |
|---|
NBTOutputStream(NBTManager nbtManager,
java.io.OutputStream out)
Creates a new
NBTOutputStream to write NBTTags to the specified
underlying output stream. |
| Modifier and Type | Method and Description |
|---|---|
void |
writeNamedTag(NamedNBT nbt) |
<T extends NBTBase> |
writeNamedTag(NBTTagType<T> nbtTagType,
NamedNBT<T> nbt) |
void |
writeTag(NBTBase nbtBase) |
<T extends NBTBase> |
writeTag(NBTTagType<T> nbtTagType,
T nbtBase) |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic NBTOutputStream(NBTManager nbtManager, java.io.OutputStream out)
NBTOutputStream to write NBTTags to the specified
underlying output stream. The counter written is
set to zero.nbtManager - the NBTManager instanceout - the underlying output stream, to be saved for later use.FilterOutputStream.outpublic void writeTag(NBTBase nbtBase) throws java.io.IOException
java.io.IOExceptionpublic <T extends NBTBase> void writeTag(NBTTagType<T> nbtTagType, T nbtBase) throws java.io.IOException
java.io.IOExceptionpublic void writeNamedTag(NamedNBT nbt) throws java.io.IOException
java.io.IOExceptionpublic <T extends NBTBase> void writeNamedTag(NBTTagType<T> nbtTagType, NamedNBT<T> nbt) throws java.io.IOException
java.io.IOException