예제 #1
0
  {
    caveGenerator = TerrainGen.getModdedMapGen(caveGenerator, CAVE);
    strongholdGenerator =
        (MapGenStronghold) TerrainGen.getModdedMapGen(strongholdGenerator, STRONGHOLD);
    villageGenerator = (MapGenVillage) TerrainGen.getModdedMapGen(villageGenerator, VILLAGE);
    mineshaftGenerator =
        (MapGenMineshaft) TerrainGen.getModdedMapGen(mineshaftGenerator, MINESHAFT);
    scatteredFeatureGenerator =
        (MapGenScatteredFeature)
            TerrainGen.getModdedMapGen(scatteredFeatureGenerator, SCATTERED_FEATURE);
    ravineGenerator = TerrainGen.getModdedMapGen(ravineGenerator, RAVINE);

    // treeGenerator = new WorldGenAtumTrees(true);
  }
  public ChunkProviderBase(World world, long seed, Dimension dim) {
    dimension = dim;
    stoneNoise = new double[256];
    /// caveGenerator = new MapGenKytherCaves();
    /// ravineGenerator = new MapGenKytherTrench();
    worldObj = world;
    rand = new Random(seed);
    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);

    if (dimension == Dimension.nether) {
      genNetherBridge =
          (MapGenNetherBridge) TerrainGen.getModdedMapGen(genNetherBridge, NETHER_BRIDGE);
    }
  }