C# Class fNbt.NbtTag

Base class for different kinds of named binary tags.
Inheritance: ICloneable
ファイルを表示 Open project: fragmer/fNbt Class Usage Examples

Protected Properties

Property Type Description
name string

Private Properties

Property Type Description
GetCanonicalTagName string
PrettyPrint void
ReadTag bool
SkipTag void
ToString string
WriteData void
WriteTag void

Public Methods

Method Description
Clone ( ) : object

Creates a deep copy of this tag.

ToString ( ) : string

Prints contents of this tag, and any child tags, to a string. Indents the string using multiples of the given indentation string.

this ( int tagIndex ) : NbtTag

Gets or sets the tag at the specified index.

ONLY APPLICABLE TO NbtList, NbtByteArray, and NbtIntArray OBJECTS! Included in NbtTag base class for programmers' convenience, to avoid extra type casts.

this ( string tagName ) : NbtTag

Gets or sets the tag with the specified name. May return null.

ONLY APPLICABLE TO NbtCompound OBJECTS! Included in NbtTag base class for programmers' convenience, to avoid extra type casts.

Private Methods

Method Description
GetCanonicalTagName ( NbtTagType type ) : string
PrettyPrint ( [ sb, [ indentString, int indentLevel ) : void
ReadTag ( [ readStream ) : bool
SkipTag ( [ readStream ) : void
ToString ( [ indentString ) : string
WriteData ( [ writeReader ) : void
WriteTag ( [ writeReader ) : void

Method Details

Clone() public abstract method

Creates a deep copy of this tag.
public abstract Clone ( ) : object
return object

ToString() public method

Prints contents of this tag, and any child tags, to a string. Indents the string using multiples of the given indentation string.
public ToString ( ) : string
return string

this() public method

Gets or sets the tag at the specified index.
ONLY APPLICABLE TO NbtList, NbtByteArray, and NbtIntArray OBJECTS! Included in NbtTag base class for programmers' convenience, to avoid extra type casts.
tagIndex is not a valid index in this tag. Given tag is null. Given tag's type does not match ListType. If used on a tag that is not NbtList, NbtByteArray, or NbtIntArray.
public this ( int tagIndex ) : NbtTag
tagIndex int The zero-based index of the tag to get or set.
return NbtTag

this() public method

Gets or sets the tag with the specified name. May return null.
ONLY APPLICABLE TO NbtCompound OBJECTS! Included in NbtTag base class for programmers' convenience, to avoid extra type casts.
If used on a tag that is not NbtCompound.
public this ( string tagName ) : NbtTag
tagName string The name of the tag to get or set. Must match tag's actual name.
return NbtTag

Property Details

name protected_oe property

protected string name
return string