diff --git a/src/pocketmine/world/ChunkManager.php b/src/pocketmine/world/ChunkManager.php index 7fb8524c6..129cee286 100644 --- a/src/pocketmine/world/ChunkManager.php +++ b/src/pocketmine/world/ChunkManager.php @@ -51,48 +51,6 @@ interface ChunkManager{ */ public function setBlockAt(int $x, int $y, int $z, Block $block) : bool; - /** - * Returns the raw block light level - * - * @param int $x - * @param int $y - * @param int $z - * - * @return int - */ - public function getBlockLightAt(int $x, int $y, int $z) : int; - - /** - * Sets the raw block light level - * - * @param int $x - * @param int $y - * @param int $z - * @param int $level - */ - public function setBlockLightAt(int $x, int $y, int $z, int $level) : void; - - /** - * Returns the highest amount of sky light can reach the specified coordinates. - * - * @param int $x - * @param int $y - * @param int $z - * - * @return int - */ - public function getBlockSkyLightAt(int $x, int $y, int $z) : int; - - /** - * Sets the raw block sky light level. - * - * @param int $x - * @param int $y - * @param int $z - * @param int $level - */ - public function setBlockSkyLightAt(int $x, int $y, int $z, int $level) : void; - /** * @param int $chunkX * @param int $chunkZ diff --git a/src/pocketmine/world/SimpleChunkManager.php b/src/pocketmine/world/SimpleChunkManager.php index 6705b0fe5..67d06a8d8 100644 --- a/src/pocketmine/world/SimpleChunkManager.php +++ b/src/pocketmine/world/SimpleChunkManager.php @@ -66,34 +66,6 @@ class SimpleChunkManager implements ChunkManager{ return false; } - public function getBlockLightAt(int $x, int $y, int $z) : int{ - if($this->terrainPointer->moveTo($x, $y, $z, false)){ - return $this->terrainPointer->currentSubChunk->getBlockLight($x & 0xf, $y & 0xf, $z & 0xf); - } - - return 0; - } - - public function setBlockLightAt(int $x, int $y, int $z, int $level) : void{ - if($this->terrainPointer->moveTo($x, $y, $z, false)){ - $this->terrainPointer->currentSubChunk->setBlockLight($x & 0xf, $y & 0xf, $z & 0xf, $level); - } - } - - public function getBlockSkyLightAt(int $x, int $y, int $z) : int{ - if($this->terrainPointer->moveTo($x, $y, $z, false)){ - return $this->terrainPointer->currentSubChunk->getBlockSkyLight($x & 0xf, $y & 0xf, $z & 0xf); - } - - return 0; - } - - public function setBlockSkyLightAt(int $x, int $y, int $z, int $level) : void{ - if($this->terrainPointer->moveTo($x, $y, $z, false)){ - $this->terrainPointer->currentSubChunk->setBlockSkyLight($x & 0xf, $y & 0xf, $z & 0xf, $level); - } - } - /** * @param int $chunkX * @param int $chunkZ