OpenMinecraft.InfdevHandler.DecompressLight C# (CSharp) Method

DecompressLight() public method

Decompress lighting data from the tiny array that is used for lighting.
public DecompressLight ( byte lightdata, int x, int y, int z ) : int
lightdata byte Compressed lighting bytearray (from /Level/{BlockLight,SkyLight})
x int XCoord
y int YCoord
z int ZCoord
return int
		public int DecompressLight(byte[] lightdata, int x, int y, int z)
		{
            int index = GetBlockIndex(x, y, z);
	        return lightdata[index >> 1];
		}