Class NbtComparer
- Namespace
- fNbt
- Assembly
- fNbt.dll
Compares tags for equality by type, name, and value. Compound tags are equal when they contain equal sets of tags; list tags when their elements 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?)
Determines whether the specified objects are equal.
public bool Equals(NbtTag? x, NbtTag? y)
Parameters
Returns
Exceptions
- ArgumentException
Either tag is nested more than 512 levels deep.
GetHashCode(NbtTag)
Returns a hash code for the specified object.
public int GetHashCode(NbtTag tag)
Parameters
tagNbtTag
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.