pocketmine\tile\Chest::unpair PHP Method

unpair() public method

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;
    }