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
valueDictionary<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
Value
The dictionary of named NBT tags contained in this ObjectTag.
public Dictionary<string, NbtTag> Value { get; set; }
Property Value
Methods
MergeWith(ObjectTag, bool)
Merges the current ObjectTag with another ObjectTag.
public void MergeWith(ObjectTag newValues, bool recurse = true)