getLight

protected final static Integer getLight(Integer light, Integer luminance)(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