C# Class fNbt.NbtTag

Base class for different kinds of named binary tags.
Inheritance: ICloneable
Afficher le fichier Open project: fragmer/fNbt Class Usage Examples

Protected Properties

Свойство Type Description
name string

Private Properties

Свойство Type Description
GetCanonicalTagName string
PrettyPrint void
ReadTag bool
SkipTag void
ToString string
WriteData void
WriteTag void

Méthodes publiques

Méthode 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

Méthode 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 méthode

Creates a deep copy of this tag.
public abstract Clone ( ) : object
Résultat object

ToString() public méthode

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
Résultat string

this() public méthode

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.
Résultat NbtTag

this() public méthode

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.
Résultat NbtTag

Property Details

name protected_oe property

protected string name
Résultat string