matchTree() public static method

public static matchTree ( CompoundTag $tag1, CompoundTag $tag2 )
$tag1 pocketmine\nbt\tag\CompoundTag
$tag2 pocketmine\nbt\tag\CompoundTag
Beispiel #1
0
 public final function deepEquals(Item $item, $checkDamage = true, $checkCompound = true)
 {
     if ($this->equals($item, $checkDamage, $checkCompound)) {
         return true;
     } elseif ($item->hasCompoundTag() and $this->hasCompoundTag()) {
         return NBT::matchTree($this->getNamedTag(), $item->getNamedTag());
     }
     return false;
 }