public static Biome[][] dataToBiome(int[] data, int sx, int sz)
    {
        Biome[][] biomes = new Biome[sx][sz];
        for (int x = 0; x < sx; x++)
            for (int z = 0; z < sz; z++)
            {
                int v = data[x + z * sx];
                biomes[x][z] = v >= 0 ? Biome.biomeList[v] : Biome.undefined;
            }
        return biomes;
    }