本文整理汇总了Java中net.minecraft.world.gen.MapGenCaves类的典型用法代码示例。如果您正苦于以下问题:Java MapGenCaves类的具体用法?Java MapGenCaves怎么用?Java MapGenCaves使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MapGenCaves类属于net.minecraft.world.gen包,在下文中一共展示了MapGenCaves类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ChunkProviderUnderdark
import net.minecraft.world.gen.MapGenCaves; //导入依赖的package包/类
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;
}
}
}
}
示例2: ChunkProviderHeaven
import net.minecraft.world.gen.MapGenCaves; //导入依赖的package包/类
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);
}
示例3: ChunkProviderNillax
import net.minecraft.world.gen.MapGenCaves; //导入依赖的package包/类
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];
}
示例4: ChunkProviderDarkax
import net.minecraft.world.gen.MapGenCaves; //导入依赖的package包/类
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];
}