Table of Contents

Class ObjectTag

Namespace
OnixRuntime.Api.NBT
Assembly
OnixRuntime.dll

Represents a tag containing a collection of named NBT tags, similar to a compound object in NBT serialization.

public class ObjectTag : NbtTag
Inheritance
ObjectTag
Inherited Members

Constructors

ObjectTag()

Initializes a new instance of the ObjectTag class with an empty dictionary.

public ObjectTag()

ObjectTag(Dictionary<string, NbtTag>)

Initializes a new instance of the ObjectTag class with the specified dictionary of tags.

public ObjectTag(Dictionary<string, NbtTag> value)

Parameters

value Dictionary<string, NbtTag>

The dictionary of named NBT tags.

Properties

TagType

Gets the tag type for this tag (Object).

public override NbtTagType TagType { get; }

Property Value

NbtTagType

Value

The dictionary of named NBT tags contained in this ObjectTag.

public Dictionary<string, NbtTag> Value { get; set; }

Property Value

Dictionary<string, NbtTag>

Methods

MergeWith(ObjectTag, bool)

Merges the current ObjectTag with another ObjectTag.

public void MergeWith(ObjectTag newValues, bool recurse = true)

Parameters

newValues ObjectTag

The new values to replace the old ones.

recurse bool

If it should do this recursively or just replace every value at the top level.