ChunkProviderSpaceLakes.java 文件源码

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

项目:TRAPPIST-1 作者:
public ChunkProviderSpaceLakes(World world, long seed, boolean flag)
{
    super();
    this.stoneNoise = new double[256];
    this.worldObj = world;
    this.rand = new Random(seed);
    this.noiseGen4 = new NoiseGeneratorOctaves(this.rand, 4);
    this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10);
    this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16);
    this.noiseGen8 = new Gradient(this.rand.nextLong(), 2, 0.25F);
    this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8);
    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.terrainCalcs = 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;
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号