public function pairWith(Tile $tile) { if ($this->isPaired() or $tile->isPaired()) { return false; } $this->data["pairx"] = $tile->x; $this->data["pairz"] = $tile->z; $tile->data["pairx"] = $this->x; $tile->data["pairz"] = $this->z; $this->server->api->tile->spawnToAll($this); $this->server->api->tile->spawnToAll($tile); $this->server->handle("tile.update", $this); $this->server->handle("tile.update", $tile); }