Свойство | Тип | Описание | |
---|---|---|---|
DetectCompression | NbtCompression | ||
GetRootNameInternal | string | ||
LoadFromStreamInternal | void | ||
NbtFile | System | ||
ReadRootTagName | string | ||
ReadRootTagName | string | ||
SaveToBuffer | byte[] | ||
ToString | string |
Метод | Описание | |
---|---|---|
LoadFromBuffer ( [ buffer, int index, int length, NbtCompression compression ) : long |
Loads NBT data from a byte array. Existing
|
|
LoadFromBuffer ( [ buffer, int index, int length, NbtCompression compression, [ selector ) : long |
Loads NBT data from a byte array. Existing
|
|
LoadFromFile ( [ fileName ) : long |
Loads NBT data from a file. Existing
|
|
LoadFromFile ( [ fileName, NbtCompression compression, [ selector ) : long |
Loads NBT data from a file. Existing
|
|
LoadFromStream ( [ stream, NbtCompression compression ) : long |
Loads NBT data from a stream. Existing
|
|
LoadFromStream ( [ stream, NbtCompression compression, [ selector ) : long |
Loads NBT data from a stream. Existing
|
|
NbtFile ( [ rootTag ) : System |
Creates a new NBT file with the given root tag.
|
|
SaveToBuffer ( [ buffer, int index, NbtCompression compression ) : long |
Saves this NBT file to a stream. Nothing is written to stream if RootTag is
|
|
SaveToFile ( [ fileName, NbtCompression compression ) : long |
Saves this NBT file to a stream. Nothing is written to stream if RootTag is
|
|
SaveToStream ( [ stream, NbtCompression compression ) : long |
Saves this NBT file to a stream. Nothing is written to stream if RootTag is
|
|
ToString ( ) : string |
Prints contents of the root tag, and any child tags, to a string.
|
Метод | Описание | |
---|---|---|
DetectCompression ( [ stream ) : NbtCompression | ||
GetRootNameInternal ( [ stream, bool bigEndian ) : string | ||
LoadFromStreamInternal ( [ stream, [ tagSelector ) : void | ||
NbtFile ( ) : System | ||
ReadRootTagName ( [ fileName ) : string | ||
ReadRootTagName ( [ fileName, NbtCompression compression, bool bigEndian, int bufferSize ) : string | ||
SaveToBuffer ( NbtCompression compression ) : byte[] | ||
ToString ( [ indentString ) : string |
public LoadFromBuffer ( [ buffer, int index, int length, NbtCompression compression ) : long | ||
buffer | [ | Stream from which data will be loaded. If |
index | int | The index into |
length | int | Maximum number of bytes to read from the given buffer. Must not be negative.
/// An |
compression | NbtCompression | Compression method to use for loading/saving this file. |
Результат | long |
public LoadFromBuffer ( [ buffer, int index, int length, NbtCompression compression, [ selector ) : long | ||
buffer | [ | Stream from which data will be loaded. If |
index | int | The index into |
length | int | Maximum number of bytes to read from the given buffer. Must not be negative.
/// An |
compression | NbtCompression | Compression method to use for loading/saving this file. |
selector | [ | Optional callback to select which tags to load into memory. Root may not be skipped.
/// No reference is stored to this callback after loading (don't worry about implicitly captured closures). May be |
Результат | long |
public LoadFromFile ( [ fileName ) : long | ||
fileName | [ | Name of the file from which data will be loaded. |
Результат | long |
public LoadFromFile ( [ fileName, NbtCompression compression, [ selector ) : long | ||
fileName | [ | Name of the file from which data will be loaded. |
compression | NbtCompression | Compression method to use for loading/saving this file. |
selector | [ | Optional callback to select which tags to load into memory. Root may not be skipped.
/// No reference is stored to this callback after loading (don't worry about implicitly captured closures). May be |
Результат | long |
public LoadFromStream ( [ stream, NbtCompression compression ) : long | ||
stream | [ | Stream from which data will be loaded. If compression is set to AutoDetect, this stream must support seeking. |
compression | NbtCompression | Compression method to use for loading/saving this file. |
Результат | long |
public LoadFromStream ( [ stream, NbtCompression compression, [ selector ) : long | ||
stream | [ | Stream from which data will be loaded. If compression is set to AutoDetect, this stream must support seeking. |
compression | NbtCompression | Compression method to use for loading/saving this file. |
selector | [ | Optional callback to select which tags to load into memory. Root may not be skipped.
/// No reference is stored to this callback after loading (don't worry about implicitly captured closures). May be |
Результат | long |
public NbtFile ( [ rootTag ) : System | ||
rootTag | [ | Compound tag to set as the root tag. May be |
Результат | System |
public SaveToBuffer ( [ buffer, int index, NbtCompression compression ) : long | ||
buffer | [ | Buffer to write data to. May not be |
index | int | The index into |
compression | NbtCompression | Compression mode to use for saving. May not be AutoDetect. |
Результат | long |
public SaveToFile ( [ fileName, NbtCompression compression ) : long | ||
fileName | [ | File to write data to. May not be |
compression | NbtCompression | Compression mode to use for saving. May not be AutoDetect. |
Результат | long |
public SaveToStream ( [ stream, NbtCompression compression ) : long | ||
stream | [ | Stream to write data to. May not be |
compression | NbtCompression | Compression mode to use for saving. May not be AutoDetect. |
Результат | long |