13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
22 public const NETWORK_ID = ProtocolInfo::CLIENT_CACHE_MISS_RESPONSE_PACKET;
25 private array $blobs = [];
31 public static function create(array $blobs) : self{
33 $result->blobs = $blobs;
45 for($i = 0, $count = $in->getUnsignedVarInt(); $i < $count; ++$i){
53 $out->putUnsignedVarInt(count($this->blobs));
54 foreach($this->blobs as $blob){
55 $out->putLLong($blob->getHash());
56 $out->putString($blob->getPayload());
61 return $handler->handleClientCacheMissResponse($this);
handle(PacketHandlerInterface $handler)
decodePayload(PacketSerializer $in)
static create(array $blobs)
encodePayload(PacketSerializer $out)