Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 783 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 783 Bytes

smallLibraries

This repo contains some small Libraries for PM plugin makers

EasyChunkLoader

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();

IMPORTANT If you want to no longer use this ChunkLoader always do:

$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?

More libaries to come...