public final function deepEquals(Item $item, bool $checkDamage = true, bool $checkCompound = true, bool $checkCount = false) : bool
{
if ($this->equals($item, $checkDamage, $checkCompound, $checkCount)) {
return true;
} elseif ($item->hasCompoundTag() and $this->hasCompoundTag()) {
return NBT::matchTree($this->getNamedTag(), $item->getNamedTag());
}
return false;
}