Example #1
0
        public Chunk provideChunk(int i, int j)
        {
            hellRNG.setSeed(i * 0x4f9939f508L + j * 0x1ef1565bd5L);
            var abyte0 = new byte[32768];

            func_4062_a(i, j, abyte0);
            func_4061_b(i, j, abyte0);
            field_4230_s.func_667_a(this, field_4235_n, i, j, abyte0);
            var chunk = new Chunk(field_4235_n, abyte0, i, j);

            return(chunk);
        }
        public Chunk provideChunk(int i, int j)
        {
            rand.setSeed(i * 0x4f9939f508L + j * 0x1ef1565bd5L);
            var abyte0 = new byte[32768];
            var chunk  = new Chunk(worldObj, abyte0, i, j);

            biomesForGeneration = worldObj.getWorldChunkManager().loadBlockGeneratorData(biomesForGeneration, i * 16, j * 16,
                                                                                         16, 16);
            double[] ad = worldObj.getWorldChunkManager().temperature;
            generateTerrain(i, j, abyte0, biomesForGeneration, ad);
            replaceBlocksForBiome(i, j, abyte0, biomesForGeneration);
            field_695_u.func_667_a(this, worldObj, i, j, abyte0);
            chunk.func_353_b();
            return(chunk);
        }