OpenMinecraft.InfdevHandler.DecompressData C# (CSharp) Method

DecompressData() public method

public DecompressData ( byte data, int x, int y, int z ) : byte
data byte
x int
y int
z int
return byte
		public byte DecompressData(byte[] data,int x, int y, int z)
		{
			int index = GetBlockIndex(x, y, z);
			if (index % 2 == 0) return (byte)(data[index/2] >> 4);
			else return (byte)(data[index/2] & 0xF);
		}
		public void CompressData(ref byte[] data,int x, int y, int z, byte b)