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

项目: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;
            }
        }
    }
}
项目:Rediscovered-Mod-1.6.4    文件:ChunkProviderHeaven.java   
public ChunkProviderHeaven(World world, long l)
{
    super(world, l, true);
    unusedSandNoise = new double[256];
    unusedGravelNoise = new double[256];
    stoneNoise = new double[256];
    caveGen = new MapGenCaves();
    field_28088_i = new int[32][32];
    worldObj = world;
    random = new Random(l);
    field_28086_k = new NoiseGeneratorOctaves(random, 16);
    field_28085_l = new NoiseGeneratorOctaves(random, 16);
    field_28084_m = new NoiseGeneratorOctaves(random, 8);
    field_28083_n = new NoiseGeneratorOctaves(random, 4);
    field_28082_o = new NoiseGeneratorOctaves(random, 4);
    field_28096_a = new NoiseGeneratorOctaves(random, 10);
    field_28095_b = new NoiseGeneratorOctaves(random, 16);
    field_28094_c = new NoiseGeneratorOctaves(random, 8);
}
项目: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];
}