What is necessary you mean? The $payload is something deflated, and you need to inflate it so that you can see the contents inside or modify them.
Hm. Created this, but didn't works PHP: $level = $entity->getLevel();$payload = zlib_decode($level);$player->sendChunk($x,$z,$payload);
zlib_decode() is to decode it. To pass to sendChunk, you should send the encoded payload. Also, zlib_encode() should be passed with your ordered binary data rather than the Level object.