This page describes what you need to know about chunks management, more specifically for InstanceContainer
When trying to load a chunk, the instance container does multiple checks in this order:
- 1.Verify if the chunk is already loaded (stop here if yes)
- 3.Create a new chunk and execute the instance ChunkGenerator (if any) to it to generate all of the chunk's blocks.
AnvilLoaderis the default chunk loader used by all
Making your own chunk implementation allows you to customize how you want blocks to be stored, how you want chunks tick to happen, etc...
It will be called when a chunk object needs to be provided.