Skip to content

ChunkManager ​

interface · pocketmine\world\ChunkManager · source

Methods ​

getBlockAt() ​

php
public function getBlockAt(int $x, int $y, int $z) : \pocketmine\block\Block

Returns a Block object representing the block state at the given coordinates.

getChunk() ​

php
public function getChunk(int $chunkX, int $chunkZ) : ?\pocketmine\world\format\Chunk

getMaxY() ​

php
public function getMaxY() : int

Returns the highest buildable Y coordinate of the world

getMinY() ​

php
public function getMinY() : int

Returns the lowest buildable Y coordinate of the world

isInWorld() ​

php
public function isInWorld(int $x, int $y, int $z) : bool

Returns 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) : void

Sets 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

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.