WorldProvider
Methods
calculateChunkCount()
php
public function calculateChunkCount() : intReturns the number of chunks in the provider. Used for world conversion time estimations.
close()
php
public function close() : voidPerforms cleanups necessary when the world provider is closed and no longer needed.
doGarbageCollection()
php
public function doGarbageCollection() : voidPerforms garbage collection in the world provider, such as cleaning up regions in Region-based worlds.
getAllChunks()
php
public function getAllChunks(bool $skipCorrupted = false, ?\Logger $logger = null) : \GeneratorReturns a generator which yields all the chunks in this world.
getPath()
php
public function getPath() : stringgetWorldData()
php
public function getWorldData() : \pocketmine\world\format\io\WorldDataReturns information about the world
getWorldMaxY()
php
public function getWorldMaxY() : intGets the build height limit of this world
getWorldMinY()
php
public function getWorldMinY() : intReturns the lowest buildable Y coordinate of this world
loadChunk()
php
public function loadChunk(int $chunkX, int $chunkZ) : ?\pocketmine\world\format\io\LoadedChunkDataLoads a chunk (usually from disk storage) and returns it. If the chunk does not exist, null is returned.
