public function getFullLight(Vector3 $pos) : int
{
$chunk = $this->getChunk($pos->x >> 4, $pos->z >> 4, false);
$level = 0;
if ($chunk !== null) {
$level = $chunk->getBlockSkyLight($pos->x & 0xf, $pos->y & 0x7f, $pos->z & 0xf);
//TODO: decrease light level by time of day
if ($level < 15) {
$level = max($chunk->getBlockLight($pos->x & 0xf, $pos->y & 0x7f, $pos->z & 0xf));
}
}
return $level;
}