13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::RESOURCE_PACK_CHUNK_REQUEST_PACKET;
22 public string $packId;
23 public int $chunkIndex;
28 public static function create(
string $packId,
int $chunkIndex) : self{
30 $result->packId = $packId;
31 $result->chunkIndex = $chunkIndex;
36 $this->packId = $in->getString();
37 $this->chunkIndex = $in->
getLInt();
41 $out->putString($this->packId);
42 $out->putLInt($this->chunkIndex);
46 return $handler->handleResourcePackChunkRequest($this);
decodePayload(PacketSerializer $in)
handle(PacketHandlerInterface $handler)
static create(string $packId, int $chunkIndex)
encodePayload(PacketSerializer $out)