mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-29 05:55:33 +01:00
Created Chunks managment (markdown)
parent
bd196b4b20
commit
2feac89fc8
10
Chunks-managment.md
Normal file
10
Chunks-managment.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Steps
|
||||||
|
When trying to load a chunk, the instance does multiple checks in this order:
|
||||||
|
1. Verify if the chunk is already loaded (stop here if yes)
|
||||||
|
2. Try to load the load from the instance IChunkLoader (stop here if the chunk loading is successful)
|
||||||
|
3. Create a new chunk and execute the instance ChunkGenerator (if any) to it to generate all of the chunk's blocks
|
||||||
|
|
||||||
|
When trying to save a chunk, IChunkLoader#saveChunk is called
|
||||||
|
|
||||||
|
# Default behavior
|
||||||
|
[Default chunk loader](https://github.com/Minestom/Minestom/blob/master/src/main/java/net/minestom/server/instance/MinestomBasicChunkLoader.java) is the default chunk loader used by all InstanceContainer, it does make use of the StorageLocation of the instance (WARNING: will not work if the storage location is null)
|
Loading…
Reference in New Issue
Block a user