mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Cleaned up SubChunk implementation
This commit is contained in:
@ -23,7 +23,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\level\format;
|
||||
|
||||
class SubChunk{
|
||||
class SubChunk implements SubChunkInterface{
|
||||
|
||||
protected $ids;
|
||||
protected $data;
|
||||
@ -182,7 +182,7 @@ class SubChunk{
|
||||
return substr($this->blockLight, (($x << 7) | ($z << 3)), 8);
|
||||
}
|
||||
|
||||
public function getSkyLightColumn(int $x, int $z) : string{
|
||||
public function getBlockSkyLightColumn(int $x, int $z) : string{
|
||||
return substr($this->skyLight, (($x << 7) | ($z << 3)), 8);
|
||||
}
|
||||
|
||||
@ -196,7 +196,7 @@ class SubChunk{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function getSkyLightArray() : string{
|
||||
public function getBlockSkyLightArray() : string{
|
||||
assert(strlen($this->skyLight) === 2048, "Wrong length of skylight array, expecting 2048 bytes, got " . strlen($this->skyLight));
|
||||
return $this->skyLight;
|
||||
}
|
||||
|
Reference in New Issue
Block a user