This repo contains some small Libraries for PM plugin makers
Keeping chunks loaded has never been easier:
$this->chunkLoaderForMyImportantChunk = new EasyChunkLoader($vec3, $level);
If you want to temporarily disable the ChunkLoader call:
$this->chunkLoaderForMyImportantChunk->deactivate();
If you want to enable it again call:
$this->chunkLoaderForMyImportantChunk->activate();
$this->chunkLoaderForMyImportantChunk->unregister();
$this->chunkLoaderForMyImportantChunk = null;
In order to free all memory, because you don't want to be the plugin author that creates Memory leakes do you?