Imagine i have an byte-array ids.
Later i want to store data in it this way:
ids[cz << 24 | cx << 16 | y << 8 | z << 4 | x]
cz, cx, y, y, z, x are int values in this case.
So how long does the array need to be when i create it? I thought i would have to initialize the array this way:
byte[] ids = new byte[maxCz * maxCx * maxY * maxZ * maxX];
But it always gives me an ArrayIndexOutOfBoundsException.