MoltarChunkProvider.java 文件源码

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

项目:Sojourn 作者:
public MoltarChunkProvider(World par1World, long par2, boolean par4, BaseWorldType type)
{
    this.worldObj = par1World;
    this.mapFeaturesEnabled = par4;
    this.rand = new Random(par2);
    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 = TerrainGen.getModdedNoiseGenerators(par1World, 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];
    this.worldType = type;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号