pocketmine\tile\Chest::unpair PHP Метод

unpair() публичный Метод

public unpair ( )
    public function unpair()
    {
        if (!$this->isPaired()) {
            return false;
        }
        $tile = $this->getPair();
        unset($this->namedtag->pairx, $this->namedtag->pairz);
        $this->spawnToAll();
        if ($tile instanceof Chest) {
            unset($tile->namedtag->pairx, $tile->namedtag->pairz);
            $tile->checkPairing();
            $tile->spawnToAll();
        }
        $this->checkPairing();
        return true;
    }