Created Chunk generator (markdown)

TheMode 2020-05-03 18:48:17 +02:00
parent fed88f06af
commit fbbc0a310e

7
Chunk-generator.md Normal file

@ -0,0 +1,7 @@
Every instance need a chunk generator, they can be easily created by extending the ChunkGenerator class
Example found [here](https://github.com/Minestom/Minestom/blob/master/src/main/java/fr/themode/demo/generator/NoiseTestGenerator.java)
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...)