public function addSound(Sound $sound, array $players = \null) { $pk = $sound->encode(); if ($players === \null) { $players = $this->getUsingChunk($sound->x >> 4, $sound->z >> 4); } if ($pk !== \null) { if (!\is_array($pk)) { Server::broadcastPacket($players, $pk->setChannel(Network::CHANNEL_WORLD_EVENTS)); } else { $this->server->batchPackets($players, $pk, \false, Network::CHANNEL_WORLD_EVENTS); } } }