Class NbtCompound
Namespace: Void.Minecraft.Nbt.Tags
Assembly: Void.Minecraft.dll
public record NbtCompound : NbtTag, IEquatable<NbtTag>, IEquatable<NbtCompound>Inheritance
object ← NbtTag ← NbtCompound
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
this[string]
public NbtTag? this[string name] { get; set; }Property Value
Methods
ContainsKey(string)
public bool ContainsKey(string name)Parameters
name string
Returns
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
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
TryRenameKey(string, string)
public bool TryRenameKey(string name, string newName)Parameters
name string
newName string
Returns
Operators
implicit operator NbtCompound(CompoundTag)
public static implicit operator NbtCompound(CompoundTag tag)Parameters
tag CompoundTag
Returns
implicit operator CompoundTag(NbtCompound)
public static implicit operator CompoundTag(NbtCompound tag)Parameters
tag NbtCompound