예제 #1
0
 public BiomeCacheBlock(BiomeCache biomecache, int i, int j)
 {
     field_35654_g = biomecache;
     field_35659_a = new float[256];
     field_35657_b = new float[256];
     field_35658_c = new BiomeGenBase[256];
     field_35655_d = i;
     field_35656_e = j;
     BiomeCache.getWorldChunkManager(biomecache).getTemperatures(field_35659_a, i << 4, j << 4, 16, 16);
     BiomeCache.getWorldChunkManager(biomecache).getRainfall(field_35657_b, i << 4, j << 4, 16, 16);
     BiomeCache.getWorldChunkManager(biomecache).func_35555_a(field_35658_c, i << 4, j << 4, 16, 16, false);
 }
예제 #2
0
        public BiomeCacheBlock(BiomeCache biomecache, int i, int j)
        {
            biomeCache = biomecache;

            temperatureValues = new float[256];
            rainfallValues    = new float[256];
            biomes            = new BiomeGenBase[256];
            xPosition         = i;
            zPosition         = j;
            BiomeCache.getWorldChunkManager(biomecache).getTemperatures(temperatureValues, i << 4, j << 4, 16, 16);
            BiomeCache.getWorldChunkManager(biomecache).getRainfall(rainfallValues, i << 4, j << 4, 16, 16);
            BiomeCache.getWorldChunkManager(biomecache).getBiomeGenAt(biomes, i << 4, j << 4, 16, 16, false);
        }