mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-25 12:05:13 +01:00
Created Chunk generator (markdown)
parent
fed88f06af
commit
fbbc0a310e
7
Chunk-generator.md
Normal file
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...)
|
Loading…
Reference in New Issue
Block a user