ChunkProviderEI.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:Eldritch-Infusion 作者:
public ChunkProviderEI(World world, long seed, boolean mapFeaturesEnabled) {
    this.worldObj = world;
    this.mapFeaturesEnabled = mapFeaturesEnabled;
    this.rand = new Random(seed);
    this.noiseGen1 = new NoiseGeneratorOctaves(this.rand, 16);
    this.noiseGen2 = new NoiseGeneratorOctaves(this.rand, 16);
    this.noiseGen3 = new NoiseGeneratorOctaves(this.rand, 8);
    this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4);
    this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10);
    this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16);
    this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8);

    NoiseGeneratorOctaves[] noiseGens = { noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5, noiseGen6, mobSpawnerNoise };
    noiseGens = (NoiseGeneratorOctaves[]) TerrainGen.getModdedNoiseGenerators(world, this.rand, noiseGens);
    this.noiseGen1 = noiseGens[0];
    this.noiseGen2 = noiseGens[1];
    this.noiseGen3 = noiseGens[2];
    this.noiseGen4 = noiseGens[3];
    this.noiseGen5 = noiseGens[4];
    this.noiseGen6 = noiseGens[5];
    this.mobSpawnerNoise = noiseGens[6];
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号