Skip to content

Class NbtCompound

Namespace: Void.Minecraft.Nbt.Tags
Assembly: Void.Minecraft.dll

public record NbtCompound : NbtTag, IEquatable<NbtTag>, IEquatable<NbtCompound>

Inheritance

objectNbtTagNbtCompound

Implements

IEquatable<NbtTag>, IEquatable<NbtCompound>

Inherited Members

NbtTag.Name, NbtTag.Type, NbtTag.AsStream(NbtFormatOptions, bool), NbtTag.AsJsonNode(), NbtTag.ToString(), NbtTag.ToSnbt(), NbtTag.Parse(string), NbtTag.Parse(ReadOnlyMemory<byte>, out NbtTag, bool, NbtFormatOptions), NbtTag.Parse<T>(ReadOnlyMemory<byte>, out T, bool, NbtFormatOptions), NbtTag.ReadFrom<TBuffer>(ref TBuffer, bool), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

NbtCompound(Dictionary<string, NbtTag>)

public NbtCompound(Dictionary<string, NbtTag> Fields)

Parameters

Fields Dictionary<string, NbtTag>

NbtCompound()

public NbtCompound()

Properties

Fields

public Dictionary<string, NbtTag> Fields { get; init; }

Property Value

Dictionary<string, NbtTag>

this[string]

public NbtTag? this[string name] { get; set; }

Property Value

NbtTag?

Methods

ContainsKey(string)

public bool ContainsKey(string name)

Parameters

name string

Returns

bool

RenameKey(string, string)

public void RenameKey(string name, string newName)

Parameters

name string

newName string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TryGetValue(string, out NbtTag)

public bool TryGetValue(string name, out NbtTag value)

Parameters

name string

value NbtTag

Returns

bool

TryRenameKey(string, string)

public bool TryRenameKey(string name, string newName)

Parameters

name string

newName string

Returns

bool

Operators

implicit operator NbtCompound(CompoundTag)

public static implicit operator NbtCompound(CompoundTag tag)

Parameters

tag CompoundTag

Returns

NbtCompound

implicit operator CompoundTag(NbtCompound)

public static implicit operator CompoundTag(NbtCompound tag)

Parameters

tag NbtCompound

Returns

CompoundTag