Class NbtComparer
- Namespace
- fNbt
- Assembly
- fNbt.dll
Compares NbtTag for equality by comparing their types, names, and values. Considers compound tags to be equal if they contain equal sets of tags. Considers list tags to be equal if their tags are equal and in the same order. Name comparisons are case-sensitive.
public sealed class NbtComparer : IEqualityComparer<NbtTag>
- Inheritance
-
NbtComparer
- Implements
- Inherited Members
Properties
Instance
Gets a singleton instance of the NbtComparer.
public static NbtComparer Instance { get; }
Property Value
Methods
Equals(NbtTag?, NbtTag?)
public bool Equals(NbtTag? x, NbtTag? y)
Parameters
Returns
GetHashCode(NbtTag)
public int GetHashCode(NbtTag tag)
Parameters
tagNbtTag