public void SetTile(ushort x, ushort y, ushort z, byte type) { blocks[x + width * z + width * height * y] = type; }