public ChunkProviderOcean(World par1World, long par2, boolean par4) {
this.worldObj = par1World;
this.mapFeaturesEnabled = par4;
this.field_147435_p = par1World.getWorldInfo().getTerrainType();
this.rand = new Random(par2);
this.field_147431_j = new NoiseGeneratorOctaves(this.rand, 16);
this.field_147432_k = new NoiseGeneratorOctaves(this.rand, 16);
this.field_147429_l = new NoiseGeneratorOctaves(this.rand, 8);
this.field_147430_m = new NoiseGeneratorPerlin(this.rand, 4);
this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10);
this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16);
this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8);
this.field_147434_q = new double[825];
this.parabolicField = new float[25];
for (int j = -2; j <= 2; ++j) {
for (int k = -2; k <= 2; ++k) {
float f = 10.0F / MathHelper.sqrt_float(j * j + k * k + 0.2F);
this.parabolicField[(j + 2 + (k + 2) * 5)] = f;
}
}
NoiseGenerator[] noiseGens = { this.field_147431_j, this.field_147432_k, this.field_147429_l, this.field_147430_m, this.noiseGen5, this.noiseGen6, this.mobSpawnerNoise };
noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.rand, noiseGens);
this.field_147431_j = ((NoiseGeneratorOctaves) noiseGens[0]);
this.field_147432_k = ((NoiseGeneratorOctaves) noiseGens[1]);
this.field_147429_l = ((NoiseGeneratorOctaves) noiseGens[2]);
this.field_147430_m = ((NoiseGeneratorPerlin) noiseGens[3]);
this.noiseGen5 = ((NoiseGeneratorOctaves) noiseGens[4]);
this.noiseGen6 = ((NoiseGeneratorOctaves) noiseGens[5]);
this.mobSpawnerNoise = ((NoiseGeneratorOctaves) noiseGens[6]);
}
ChunkProviderOcean.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:EvilOcean
作者:
评论列表
文章目录