Separate TickingChunkLoader from ChunkLoader

this makes it possible to keep chunks loaded without ticking them.
This commit is contained in:
Dylan K. Taylor
2021-03-18 23:19:27 +00:00
parent d1387ebd0a
commit c092a2e836
6 changed files with 54 additions and 14 deletions

View File

@ -24,7 +24,7 @@ declare(strict_types=1);
namespace pocketmine\world;
/**
* If you want to keep chunks loaded, implement this interface and register it into World. This will also tick chunks.
* If you want to keep chunks loaded, implement this interface and register it into World.
*
* @see World::registerChunkLoader()
* @see World::unregisterChunkLoader()
@ -34,13 +34,4 @@ namespace pocketmine\world;
*/
interface ChunkLoader{
/**
* @return float
*/
public function getX();
/**
* @return float
*/
public function getZ();
}