public int GetBlock(int x, int y, int z) { byte[, ,] chunk = GetChunk(x, y, z); return chunk[x % chunksize, y % chunksize, z % chunksize]; }