getLight

protected fun getLight(light: Int, luminance: Int): Int(source)

Calculates a new light parameter value.

Return

A new light value where the block light is luminance if it's greater than the previous block light value

Parameters

light

The packed light value

luminance

The luminance of a block state