Java 类net.minecraft.world.gen.MapGenRavine 实例源码

项目:ExtraUtilities    文件:ChunkProviderUnderdark.java   
public ChunkProviderUnderdark(final World par1World, final long par2, final boolean par4) {
    super(par1World, par2, par4, "2;7,80x1,4,69x0,100x1,7;3;stronghold,dungeon,mineshaft,decoration");
    this.r = new Random();
    this.caveGenerator = new MapGenCaves();
    this.mineshaftGenerator = new MapGenMineshaft();
    this.ravineGenerator = new MapGenRavine();
    this.holes_gen = new WorldGenBigHole();
    this.castle_gen = new WorldGenCastle();
    this.tree_gen = new WorldGenBedrockTree();
    this.base_array = new Block[65536];
    this.worldObj = par1World;
    this.rand = new Random(par2);
    for (int i = 0; i < this.base_array.length; ++i) {
        this.base_array[i] = Blocks.air;
    }
    for (int x = 0; x < 16; ++x) {
        for (int z = 0; z < 16; ++z) {
            for (int y = 0; y <= 83; ++y) {
                this.base_array[(x * 16 + z) * 128 + y] = Blocks.stone;
            }
        }
    }
}
项目:ZeroQuest    文件:ChunkProviderNillax.java   
public ChunkProviderNillax(World worldIn, long p_i45636_2_, boolean p_i45636_4_, String p_i45636_5_)
{
    this.field_177476_s = Blocks.water;
    this.stoneNoise = new double[256];
    this.caveGenerator = new MapGenCaves();
    //this.strongholdGenerator = new MapGenStronghold();
    this.villageGenerator = new MapGenNileVillage();
    this.mineshaftGenerator = new MapGenMineshaft();
    this.scatteredFeatureGenerator = new MapGenScatteredFeature();
    this.ravineGenerator = new MapGenRavine();
    //this.oceanMonumentGenerator = new StructureOceanMonument();
    this.worldObj = worldIn;
    this.mapFeaturesEnabled = p_i45636_4_;
    this.field_177475_o = worldIn.getWorldInfo().getTerrainType();
    this.rand = new Random(p_i45636_2_);
    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((float)(j * j + k * k) + 0.2F);
            this.parabolicField[j + 2 + (k + 2) * 5] = f;
        }
    }

    if (p_i45636_5_ != null)
    {
        this.settings = ChunkProviderSettings.Factory.jsonToFactory(p_i45636_5_).func_177864_b();
        this.field_177476_s = this.settings.useLavaOceans ? Blocks.lava : Blocks.water;
    }

    NoiseGenerator[] noiseGens = {field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5, noiseGen6, mobSpawnerNoise};
    noiseGens = TerrainGen.getModdedNoiseGenerators(worldIn, 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];
}
项目:ZeroQuest    文件:ChunkProviderDarkax.java   
public ChunkProviderDarkax(World worldIn, long p_i45636_2_, boolean p_i45636_4_, String p_i45636_5_)
{
    this.field_177476_s = Blocks.lava;
    this.stoneNoise = new double[256];
    this.caveGenerator = new MapGenCaves();
    //this.strongholdGenerator = new MapGenStronghold();
    this.villageGenerator = new MapGenNileVillage();
    this.mineshaftGenerator = new MapGenMineshaft();
    this.scatteredFeatureGenerator = new MapGenScatteredFeature();
    this.ravineGenerator = new MapGenRavine();
    //this.oceanMonumentGenerator = new StructureOceanMonument();
    this.worldObj = worldIn;
    this.mapFeaturesEnabled = p_i45636_4_;
    this.field_177475_o = worldIn.getWorldInfo().getTerrainType();
    this.rand = new Random(p_i45636_2_);
    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((float)(j * j + k * k) + 0.2F);
            this.parabolicField[j + 2 + (k + 2) * 5] = f;
        }
    }

    if (p_i45636_5_ != null)
    {
        this.settings = ChunkProviderSettings.Factory.jsonToFactory(p_i45636_5_).func_177864_b();
        this.field_177476_s = this.settings.useLavaOceans ? Blocks.lava : Blocks.lava;
    }

    NoiseGenerator[] noiseGens = {field_147431_j, field_147432_k, field_147429_l, field_147430_m, noiseGen5, noiseGen6, mobSpawnerNoise};
    noiseGens = TerrainGen.getModdedNoiseGenerators(worldIn, 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];
}