OpenMinecraft.InfdevHandler.GetBlockNumbers C# (CSharp) Method

GetBlockNumbers() private method

private GetBlockNumbers ( byte b ) : int>.Dictionary
b byte
return int>.Dictionary
        private Dictionary<byte, int> GetBlockNumbers(byte[, ,] b)
		{
			Dictionary<byte, int> BlockCount = new Dictionary<byte, int>();
			for (int x = 0; x < ChunkScale.X; x++)
			{
				for (int y = 0; y < ChunkScale.Y; y++)
				{
					for (int z = 0; z < ChunkScale.Z; z++)
					{
						byte blk = b[x, y, z];
						if (!BlockCount.ContainsKey(blk))
							BlockCount.Add(blk, 0);
						++BlockCount[blk];
					}
				}
			}
			return BlockCount;
		}