pocketmine\level\format\mcregion\Chunk::setBlockLight PHP Метод

setBlockLight() публичный Метод

public setBlockLight ( $x, $y, $z, $level )
    public function setBlockLight($x, $y, $z, $level)
    {
        $i = $x << 10 | $z << 6 | $y >> 1;
        $old_l = ord($this->blockLight[$i]);
        if (($y & 1) === 0) {
            $this->blockLight[$i] = chr($old_l & 0xf0 | $level & 0xf);
        } else {
            $this->blockLight[$i] = chr(($level & 0xf) << 4 | $old_l & 0xf);
        }
        $this->hasChanged = true;
    }