ChunkManager
Methods
getBlockAt()
php
public function getBlockAt(int $x, int $y, int $z) : \pocketmine\block\BlockReturns a Block object representing the block state at the given coordinates.
getChunk()
php
public function getChunk(int $chunkX, int $chunkZ) : ?\pocketmine\world\format\ChunkgetMaxY()
php
public function getMaxY() : intReturns the highest buildable Y coordinate of the world
getMinY()
php
public function getMinY() : intReturns the lowest buildable Y coordinate of the world
isInWorld()
php
public function isInWorld(int $x, int $y, int $z) : boolReturns whether the specified coordinates are within the valid world boundaries, taking world format limitations into account.
setBlockAt()
php
public function setBlockAt(int $x, int $y, int $z, \pocketmine\block\Block $block) : voidSets the block at the given coordinates to the block state specified.
setChunk()
php
public function setChunk(int $chunkX, int $chunkZ, \pocketmine\world\format\Chunk $chunk) : void