2 Chunk generator
TheMode edited this page 2020-10-27 12:11:29 +01:00

Every instance need a chunk generator, they can be easily created by extending the ChunkGenerator class

Example found here

We have ChunkGenerator#generateChunkData which is called once for all chunk, the batch is then executed and the chunk packet sent to all nearby players.

Populators can also be specified, they are executed after the chunk generator as a way to "populate" the world (trees, structures, etc...)