NbtLib2012  0.3.4
A continuation of libnbt project, originally by Erik Davidson (aphistic). A C# library for reading and writing Named Binary Tag (NBT) format files.
 All Classes Namespaces Files Functions Enumerations Properties
LibNbt.NbtIntArray Class Reference

A tag containing an array of signed 32-bit integers. More...

Inheritance diagram for LibNbt.NbtIntArray:
Collaboration diagram for LibNbt.NbtIntArray:

Public Member Functions

 NbtIntArray ()
 Creates an unnamed NbtIntArray tag, containing an empty array of ints.
 
 NbtIntArray ([NotNull] int[] value)
 Creates an unnamed NbtIntArray tag, containing the given array of ints.
 
 NbtIntArray ([CanBeNull] string tagName)
 Creates an NbtIntArray tag with the given name, containing an empty array of ints.
 
 NbtIntArray ([CanBeNull] string tagName,[NotNull] int[] value)
 Creates an NbtIntArray tag with the given name, containing the given array of ints.
 
override string ToString ()
 Returns a String that represents the current NbtIntArray object. Format: TAG_Int_Array("Name"): [N ints]
 
- Public Member Functions inherited from LibNbt.NbtTag
string ToString ([NotNull] string indentString)
 Prints contents of this tag, and any child tags, to a string. Indents the string using multiples of the given indentation string.
 

Properties

override NbtTagType TagType [get]
 Type of this tag (ByteArray).
 
int[] Value [get, set]
 Value/payload of this tag (an array of signed 32-bit integers). May not be null.
 
new int this[int tagIndex] [get, set]
 Gets or sets an integer at the given index.
 
- Properties inherited from LibNbt.NbtTag
NbtTag Parent [get, set]
 Parent compound tag, either NbtList or NbtCompound, if any.
 
virtual NbtTagType TagType [get]
 Type of this tag.
 
string Name [get, set]
 Name of this tag. Immutable, and set by the constructor. May be null.
 
string Path [get]
 Gets the full name of this tag, including all parent tag names, separated by dots. Unnamed tags show up as empty strings.
 
virtual NbtTag this[string tagName] [get, set]
 Gets or sets the tag with the specified name. May return null.
 
virtual NbtTag this[int tagIndex] [get, set]
 Gets or sets the tag at the specified index.
 
byte ByteValue [get]
 Returns the value of this tag, cast as a byte. Only supported by NbtByte tags.
 
short ShortValue [get]
 Returns the value of this tag, cast as a short (16-bit signed integer). Only supported by NbtByte and NbtShort.
 
int IntValue [get]
 Returns the value of this tag, cast as an int (32-bit signed integer). Only supported by NbtByte, NbtShort, and NbtInt.
 
long LongValue [get]
 Returns the value of this tag, cast as a long (64-bit signed integer). Only supported by NbtByte, NbtShort, NbtInt, and NbtLong.
 
float FloatValue [get]
 Returns the value of this tag, cast as a long (64-bit signed integer). Only supported by NbtFloat and, with loss of precision, by NbtDouble, NbtByte, NbtShort, NbtInt, and NbtLong.
 
double DoubleValue [get]
 Returns the value of this tag, cast as a long (64-bit signed integer). Only supported by NbtFloat, NbtDouble, and, with loss of precision, by NbtByte, NbtShort, NbtInt, and NbtLong.
 
byte[] ByteArrayValue [get]
 Returns the value of this tag, cast as a byte array. Only supported by NbtByteArray tags.
 
int[] IntArrayValue [get]
 Returns the value of this tag, cast as an int array. Only supported by NbtIntArray tags.
 
string StringValue [get]
 Returns the value of this tag, cast as a string. Returns exact value for NbtString, and stringified (using InvariantCulture) value for NbtByte, NbtDouble, NbtFloat, NbtInt, NbtLong, and NbtShort. Not supported by NbtCompound, NbtList, NbtByteArray, or NbtIntArray.
 

Additional Inherited Members

- Static Public Member Functions inherited from LibNbt.NbtTag
static string GetCanonicalTagName (NbtTagType type)
 Returns a canonical (Notchy) name for the given NbtTagType, e.g. "TAG_Byte_Array" for NbtTagType.ByteArray
 

Detailed Description

A tag containing an array of signed 32-bit integers.

Constructor & Destructor Documentation

LibNbt.NbtIntArray.NbtIntArray ( )

Creates an unnamed NbtIntArray tag, containing an empty array of ints.

LibNbt.NbtIntArray.NbtIntArray ( [NotNull] int[]  value)

Creates an unnamed NbtIntArray tag, containing the given array of ints.

Parameters
valueInt array to assign to this tag's Value. May not be null.
Exceptions
ArgumentNullExceptionvalue is null.
LibNbt.NbtIntArray.NbtIntArray ( [CanBeNull] string  tagName)

Creates an NbtIntArray tag with the given name, containing an empty array of ints.

Parameters
tagNameName to assign to this tag. May be null.
LibNbt.NbtIntArray.NbtIntArray ( [CanBeNull] string  tagName,
[NotNull] int[]  value 
)

Creates an NbtIntArray tag with the given name, containing the given array of ints.

Parameters
tagNameName to assign to this tag. May be null.
valueInt array to assign to this tag's Value. May not be null.
Exceptions
ArgumentNullExceptionvalue is null.

Member Function Documentation

override string LibNbt.NbtIntArray.ToString ( )

Returns a String that represents the current NbtIntArray object. Format: TAG_Int_Array("Name"): [N ints]

Returns
A String that represents the current NbtIntArray object.

Property Documentation

override NbtTagType LibNbt.NbtIntArray.TagType
get

Type of this tag (ByteArray).

new int LibNbt.NbtIntArray.this[int tagIndex]
getset

Gets or sets an integer at the given index.

Parameters
tagIndexThe zero-based index of the element to get or set.
Returns
The integer at the specified index.
Exceptions
IndexOutOfRangeExceptiontagIndex is outside the array bounds.
int [] LibNbt.NbtIntArray.Value
getset

Value/payload of this tag (an array of signed 32-bit integers). May not be null.

Exceptions
ArgumentNullExceptionvalue is null.

The documentation for this class was generated from the following file: