C# Класс fNbt.NbtTag

Base class for different kinds of named binary tags.
Наследование: ICloneable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
name string

Private Properties

Свойство Тип Описание
GetCanonicalTagName string
PrettyPrint void
ReadTag bool
SkipTag void
ToString string
WriteData void
WriteTag void

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Clone() публичный абстрактный Метод

Creates a deep copy of this tag.
public abstract Clone ( ) : object
Результат object

ToString() публичный Метод

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
Результат string

this() публичный Метод

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.
Результат NbtTag

this() публичный Метод

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.
Результат NbtTag

Описание свойств

name защищенное свойство

protected string name
Результат string