Свойство | Тип | Описание | |
---|---|---|---|
CheckArray | void | ||
EnforceConstraints | void | ||
GoDown | void | ||
GoUp | void | ||
WriteByteArrayFromStreamImpl | void |
Метод | Описание | |
---|---|---|
BeginCompound ( ) : void |
Begins an unnamed compound tag.
|
|
BeginCompound ( [ tagName ) : void |
Begins a named compound tag.
|
|
BeginList ( NbtTagType elementType, int size ) : void |
Begins an unnamed list tag.
|
|
BeginList ( [ tagName, NbtTagType elementType, int size ) : void |
Begins an unnamed list tag.
|
|
EndCompound ( ) : void |
Ends a compound tag.
|
|
EndList ( ) : void |
Ends a list tag.
|
|
Finish ( ) : void |
Ensures that file has been written in its entirety, with no tags left open. This method is for verification only, and does not actually write any data. Calling this method is optional (but probably a good idea, to catch any usage errors).
|
|
NbtWriter ( [ stream, [ rootTagName ) : System |
Initializes a new instance of the NbtWriter class. Assumes that data in the stream should be Big-Endian encoded. |
|
NbtWriter ( [ stream, [ rootTagName, bool bigEndian ) : System |
Initializes a new instance of the NbtWriter class.
|
|
WriteByte ( [ tagName, byte value ) : void |
Writes an unnamed byte tag.
|
|
WriteByte ( byte value ) : void |
Writes an unnamed byte tag.
|
|
WriteByteArray ( [ data ) : void |
Writes an unnamed byte array tag, copying data from an array.
|
|
WriteByteArray ( [ tagName, [ data ) : void |
Writes a named byte array tag, copying data from an array.
|
|
WriteByteArray ( [ tagName, [ dataSource, int count ) : void |
Writes a named byte array tag, copying data from a stream. A temporary buffer will be allocated, of size up to 8192 bytes. To manually specify a buffer, use one of the other WriteByteArray() overloads. |
|
WriteByteArray ( [ tagName, [ dataSource, int count, [ buffer ) : void |
Writes an unnamed byte array tag, copying data from another stream.
|
|
WriteByteArray ( [ tagName, [ data, int offset, int count ) : void |
Writes a named byte array tag, copying data from an array.
|
|
WriteByteArray ( [ dataSource, int count ) : void |
Writes an unnamed byte array tag, copying data from a stream. A temporary buffer will be allocated, of size up to 8192 bytes. To manually specify a buffer, use one of the other WriteByteArray() overloads. |
|
WriteByteArray ( [ dataSource, int count, [ buffer ) : void |
Writes an unnamed byte array tag, copying data from a stream.
|
|
WriteByteArray ( [ data, int offset, int count ) : void |
Writes an unnamed byte array tag, copying data from an array.
|
|
WriteDouble ( [ tagName, double value ) : void |
Writes an unnamed byte tag.
|
|
WriteDouble ( double value ) : void |
Writes an unnamed double tag.
|
|
WriteFloat ( [ tagName, float value ) : void |
Writes an unnamed float tag.
|
|
WriteFloat ( float value ) : void |
Writes an unnamed float tag.
|
|
WriteInt ( [ tagName, int value ) : void |
Writes an unnamed int tag.
|
|
WriteInt ( int value ) : void |
Writes an unnamed int tag.
|
|
WriteIntArray ( [ data ) : void |
Writes an unnamed int array tag, copying data from an array.
|
|
WriteIntArray ( [ tagName, [ data ) : void |
Writes a named int array tag, copying data from an array.
|
|
WriteIntArray ( [ tagName, [ data, int offset, int count ) : void |
Writes a named int array tag, copying data from an array.
|
|
WriteIntArray ( [ data, int offset, int count ) : void |
Writes an unnamed int array tag, copying data from an array.
|
|
WriteLong ( [ tagName, long value ) : void |
Writes an unnamed long tag.
|
|
WriteLong ( long value ) : void |
Writes an unnamed long tag.
|
|
WriteShort ( [ tagName, short value ) : void |
Writes an unnamed short tag.
|
|
WriteShort ( short value ) : void |
Writes an unnamed short tag.
|
|
WriteString ( [ value ) : void |
Writes an unnamed string tag.
|
|
WriteString ( [ tagName, [ value ) : void |
Writes an unnamed string tag.
|
|
WriteTag ( [ tag ) : void |
Writes a NbtTag object, and all of its child tags, to stream. Use this method sparingly with NbtWriter -- constructing NbtTag objects defeats the purpose of this class. If you already have lots of NbtTag objects, you might as well use NbtFile to write them all at once.
|
Метод | Описание | |
---|---|---|
CheckArray ( [ data, int offset, int count ) : void | ||
EnforceConstraints ( [ name, NbtTagType desiredType ) : void | ||
GoDown ( NbtTagType thisType ) : void | ||
GoUp ( ) : void | ||
WriteByteArrayFromStreamImpl ( [ dataSource, int count, [ buffer ) : void |
public BeginCompound ( [ tagName ) : void | ||
tagName | [ | Name to give to this compound tag. May not be null. |
Результат | void |
public BeginList ( NbtTagType elementType, int size ) : void | ||
elementType | NbtTagType | Type of elements of this list. |
size | int | Number of elements in this list. Must not be negative. |
Результат | void |
public BeginList ( [ tagName, NbtTagType elementType, int size ) : void | ||
tagName | [ | Name to give to this compound tag. May not be null. |
elementType | NbtTagType | Type of elements of this list. |
size | int | Number of elements in this list. Must not be negative. |
Результат | void |
public NbtWriter ( [ stream, [ rootTagName ) : System | ||
stream | [ | Stream to write to. |
rootTagName | [ | Name to give to the root tag (written immediately). |
Результат | System |
public NbtWriter ( [ stream, [ rootTagName, bool bigEndian ) : System | ||
stream | [ | Stream to write to. |
rootTagName | [ | Name to give to the root tag (written immediately). |
bigEndian | bool | Whether NBT data should be in Big-Endian encoding. |
Результат | System |
public WriteByte ( [ tagName, byte value ) : void | ||
tagName | [ | Name to give to this compound tag. May not be null. |
value | byte | The unsigned byte to write. |
Результат | void |
public WriteByte ( byte value ) : void | ||
value | byte | The unsigned byte to write. |
Результат | void |
public WriteByteArray ( [ data ) : void | ||
data | [ | A byte array containing the data to write. |
Результат | void |
public WriteByteArray ( [ tagName, [ data ) : void | ||
tagName | [ | Name to give to this byte array tag. May not be null. |
data | [ | A byte array containing the data to write. |
Результат | void |
public WriteByteArray ( [ tagName, [ dataSource, int count ) : void | ||
tagName | [ | Name to give to this byte array tag. May not be null. |
dataSource | [ | A Stream from which data will be copied. |
count | int | The number of bytes to write. Must not be negative. |
Результат | void |
public WriteByteArray ( [ tagName, [ dataSource, int count, [ buffer ) : void | ||
tagName | [ | Name to give to this byte array tag. May not be null. |
dataSource | [ | A Stream from which data will be copied. |
count | int | The number of bytes to write. Must not be negative. |
buffer | [ | Buffer to use for copying. Size must be greater than 0. Must not be null. |
Результат | void |
public WriteByteArray ( [ tagName, [ data, int offset, int count ) : void | ||
tagName | [ | Name to give to this byte array tag. May not be null. |
data | [ | A byte array containing the data to write. |
offset | int | The starting point in |
count | int | The number of bytes to write. Must not be negative. |
Результат | void |
public WriteByteArray ( [ dataSource, int count ) : void | ||
dataSource | [ | A Stream from which data will be copied. |
count | int | The number of bytes to write. Must not be negative. |
Результат | void |
public WriteByteArray ( [ dataSource, int count, [ buffer ) : void | ||
dataSource | [ | A Stream from which data will be copied. |
count | int | The number of bytes to write. Must not be negative. |
buffer | [ | Buffer to use for copying. Size must be greater than 0. Must not be null. |
Результат | void |
public WriteByteArray ( [ data, int offset, int count ) : void | ||
data | [ | A byte array containing the data to write. |
offset | int | The starting point in |
count | int | The number of bytes to write. Must not be negative. |
Результат | void |
public WriteDouble ( [ tagName, double value ) : void | ||
tagName | [ | Name to give to this compound tag. May not be null. |
value | double | The unsigned byte to write. |
Результат | void |
public WriteDouble ( double value ) : void | ||
value | double | The eight-byte floating-point value to write. |
Результат | void |
public WriteFloat ( [ tagName, float value ) : void | ||
tagName | [ | Name to give to this compound tag. May not be null. |
value | float | The four-byte floating-point value to write. |
Результат | void |
public WriteFloat ( float value ) : void | ||
value | float | The four-byte floating-point value to write. |
Результат | void |
public WriteInt ( [ tagName, int value ) : void | ||
tagName | [ | Name to give to this compound tag. May not be null. |
value | int | The four-byte signed integer to write. |
Результат | void |
public WriteInt ( int value ) : void | ||
value | int | The four-byte signed integer to write. |
Результат | void |
public WriteIntArray ( [ data ) : void | ||
data | [ | An int array containing the data to write. |
Результат | void |
public WriteIntArray ( [ tagName, [ data ) : void | ||
tagName | [ | Name to give to this int array tag. May not be null. |
data | [ | An int array containing the data to write. |
Результат | void |
public WriteIntArray ( [ tagName, [ data, int offset, int count ) : void | ||
tagName | [ | Name to give to this int array tag. May not be null. |
data | [ | An int array containing the data to write. |
offset | int | The starting point in |
count | int | The number of elements to write. Must not be negative. |
Результат | void |
public WriteIntArray ( [ data, int offset, int count ) : void | ||
data | [ | An int array containing the data to write. |
offset | int | The starting point in |
count | int | The number of elements to write. Must not be negative. |
Результат | void |
public WriteLong ( [ tagName, long value ) : void | ||
tagName | [ | Name to give to this compound tag. May not be null. |
value | long | The eight-byte signed integer to write. |
Результат | void |
public WriteLong ( long value ) : void | ||
value | long | The eight-byte signed integer to write. |
Результат | void |
public WriteShort ( [ tagName, short value ) : void | ||
tagName | [ | Name to give to this compound tag. May not be null. |
value | short | The two-byte signed integer to write. |
Результат | void |
public WriteShort ( short value ) : void | ||
value | short | The two-byte signed integer to write. |
Результат | void |
public WriteString ( [ value ) : void | ||
value | [ | The string to write. |
Результат | void |
public WriteString ( [ tagName, [ value ) : void | ||
tagName | [ | Name to give to this compound tag. May not be null. |
value | [ | The string to write. |
Результат | void |
public WriteTag ( [ tag ) : void | ||
tag | [ | Tag to write. Must not be null. |
Результат | void |