PocketMine-MP 5.19.1 git-5cc1068cd43264d3363295eb8d6901e02f467897
|
Public Member Functions | |
__construct (private int $minY, private int $maxY) | |
cleanChunks () | |
getBlockAt (int $x, int $y, int $z) | |
getChunk (int $chunkX, int $chunkZ) | |
getMaxY () | |
getMinY () | |
isInWorld (int $x, int $y, int $z) | |
setBlockAt (int $x, int $y, int $z, Block $block) | |
setChunk (int $chunkX, int $chunkZ, Chunk $chunk) | |
Protected Attributes | |
array | $chunks = [] |
Definition at line 32 of file SimpleChunkManager.php.
pocketmine\world\SimpleChunkManager::__construct | ( | private int | $minY, |
private int | $maxY | ||
) |
Definition at line 37 of file SimpleChunkManager.php.
pocketmine\world\SimpleChunkManager::cleanChunks | ( | ) |
Definition at line 65 of file SimpleChunkManager.php.
pocketmine\world\SimpleChunkManager::getBlockAt | ( | int | $x, |
int | $y, | ||
int | $z | ||
) |
Returns a Block object representing the block state at the given coordinates.
Implements pocketmine\world\ChunkManager.
Definition at line 42 of file SimpleChunkManager.php.
pocketmine\world\SimpleChunkManager::getChunk | ( | int | $chunkX, |
int | $chunkZ | ||
) |
Implements pocketmine\world\ChunkManager.
Definition at line 57 of file SimpleChunkManager.php.
pocketmine\world\SimpleChunkManager::getMaxY | ( | ) |
Returns the highest buildable Y coordinate of the world
Implements pocketmine\world\ChunkManager.
Definition at line 73 of file SimpleChunkManager.php.
pocketmine\world\SimpleChunkManager::getMinY | ( | ) |
Returns the lowest buildable Y coordinate of the world
Implements pocketmine\world\ChunkManager.
Definition at line 69 of file SimpleChunkManager.php.
pocketmine\world\SimpleChunkManager::isInWorld | ( | int | $x, |
int | $y, | ||
int | $z | ||
) |
Returns whether the specified coordinates are within the valid world boundaries, taking world format limitations into account.
Implements pocketmine\world\ChunkManager.
Definition at line 77 of file SimpleChunkManager.php.
pocketmine\world\SimpleChunkManager::setBlockAt | ( | int | $x, |
int | $y, | ||
int | $z, | ||
Block | $block | ||
) |
Sets the block at the given coordinates to the block state specified.
InvalidArgumentException
Implements pocketmine\world\ChunkManager.
Definition at line 49 of file SimpleChunkManager.php.
pocketmine\world\SimpleChunkManager::setChunk | ( | int | $chunkX, |
int | $chunkZ, | ||
Chunk | $chunk | ||
) |
Implements pocketmine\world\ChunkManager.
Definition at line 61 of file SimpleChunkManager.php.
|
protected |
Definition at line 35 of file SimpleChunkManager.php.