Hello, I am creating a plugin that includes sending chunks to only one player. After searching up the ChunkDataPacket on GitHub, I don't understand how the $packet->data is written. I only know that it is a string, but I can't understand what it is composed of, what a minichunk is, and how the blocks are listed. Please help!
Nobody (at least not me) really understands the chunk format. MinecraftWiki doesn't explain it well enough.
I know that, but I don't understand the mini chunks format and how they are combined. Looks like combining mini chunks with something called $Yndex ..
$Yndex is used as a bitmap to choose the chunks to be sent, those are decided on Player::getNextChunk()
The queue is dynamic and the server can choose between sending new chunks or sending individual block changes
I know that, and I would like to know the structure of a chunk that you "gets the data directly from the level class".