コード例 #1
0
 public ChunkProviderFlat(World par1World, long par2, bool par4)
 {
     VillageGen    = new MapGenVillage(1);
     WorldObj      = par1World;
     UseStructures = par4;
     Random        = new Random((int)par2);
 }
コード例 #2
0
 public ChunkProviderGenerate(World par1World, long par2, bool par4)
 {
     stoneNoise          = new double[256];
     caveGenerator       = new MapGenCaves();
     strongholdGenerator = new MapGenStronghold();
     villageGenerator    = new MapGenVillage(0);
     mineshaftGenerator  = new MapGenMineshaft();
     ravineGenerator     = new MapGenRavine();
     Field_914_i         = JavaHelper.ReturnRectangularArray <int>(32, 32);
     worldObj            = par1World;
     mapFeaturesEnabled  = par4;
     rand            = new Random((int)par2);
     noiseGen1       = new NoiseGeneratorOctaves(rand, 16);
     noiseGen2       = new NoiseGeneratorOctaves(rand, 16);
     noiseGen3       = new NoiseGeneratorOctaves(rand, 8);
     noiseGen4       = new NoiseGeneratorOctaves(rand, 4);
     NoiseGen5       = new NoiseGeneratorOctaves(rand, 10);
     NoiseGen6       = new NoiseGeneratorOctaves(rand, 16);
     MobSpawnerNoise = new NoiseGeneratorOctaves(rand, 8);
 }