public abstract class ColoredLightHelper
extends java.lang.Object
| Constructor and Description |
|---|
ColoredLightHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
makeRGBLightValue(int r,
int g,
int b,
int brightness)
Computes a 20-bit lighting word, containing red, green, blue, and brightness settings.
|
public static int makeRGBLightValue(int r,
int g,
int b,
int brightness)
r - Red intensity, 0 to 15. Resolution is 4 bits.g - Green intensity, 0 to 15. Resolution is 4 bits.b - Blue intensity, 0 to 15. Resolution is 4 bits.brightness - The existing lightValue of a block. Only the lower-most 4 bits of this parameter are used.