public function putPacket(DataPacket $pk) { if (!$pk->isEncoded) { $pk->encode(); } $this->client->pushMainToThreadPacket($pk->buffer); }