@Override
 // TODO:                     getRandomWorldGenForTrees()
 public WorldGenAbstractTree func_150567_a(Random random) {
   return new WorldGenDeadTree1(
       false,
       Blocks.dirt,
       Blocks.grass,
       BOPBlockHelper.get("driedDirt"),
       BOPBlockHelper.get("mud"));
 }
Example #2
0
  @Override
  public void decorate(World world, Random random, int chunkX, int chunkZ) {
    super.decorate(world, random, chunkX, chunkZ);

    int var5 = 12 + random.nextInt(6);

    for (int var6 = 0; var6 < var5; ++var6) {
      int x = chunkX + random.nextInt(16);
      int y = random.nextInt(28) + 4;
      int z = chunkZ + random.nextInt(16);

      Block block = world.getBlock(x, y, z);

      if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone)) {
        world.setBlock(x, y, z, BOPBlockHelper.get("gemOre"), 10, 2);
      }
    }

    for (int var6 = 0; var6 < 10; ++var6) {
      int var7 = chunkX + random.nextInt(16) + 8;
      short var8 = 62;
      int var9 = chunkZ + random.nextInt(16) + 8;

      new WorldGenMarsh().generate(world, random, var7, var8, var9);
    }
  }
Example #3
0
  public BiomeGenBog(int id) {
    super(id);

    this.setHeight(biomeHeight);
    this.setColor(14193503);
    this.setTemperatureRainfall(0.8F, 0.9F);

    this.spawnableCreatureList.clear();
    this.spawnableWaterCreatureList.clear();

    this.theBiomeDecorator.treesPerChunk = 12;
    this.theBiomeDecorator.flowersPerChunk = -999;
    this.theBiomeDecorator.mushroomsPerChunk = 8;
    this.theBiomeDecorator.grassPerChunk = 5;
    this.theBiomeDecorator.sandPerChunk = -999;
    this.theBiomeDecorator.sandPerChunk2 = -999;

    this.bopWorldFeatures.setFeature("bushesPerChunk", 6);
    this.bopWorldFeatures.setFeature("mudPerChunk", 2);
    this.bopWorldFeatures.setFeature("algaePerChunk", 3);
    this.bopWorldFeatures.setFeature("riverCanePerChunk", 8);
    this.bopWorldFeatures.setFeature("blueMilksPerChunk", 1);
    this.bopWorldFeatures.setFeature("waterLakesPerChunk", 6);
    // TODO: FEATURE this.bopWorldFeatures.poisonWaterPerChunk = 2;
    this.bopWorldFeatures.setFeature("waterReedsPerChunk", 8);
    this.bopWorldFeatures.setFeature("koruPerChunk", 1);
    this.bopWorldFeatures.setFeature("shrubsPerChunk", 10);
    this.bopWorldFeatures.setFeature("leafPilesPerChunk", 15);
    this.bopWorldFeatures.setFeature("deadLeafPilesPerChunk", 8);
    this.bopWorldFeatures.setFeature("seaweedPerChunk", 15);
    this.bopWorldFeatures.setFeature("generatePumpkins", false);

    this.bopWorldFeatures.setFeature("bopGrassPerChunk", 5);

    this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPTallGrass(Blocks.tallgrass, 1), 0.5D);
    this.bopWorldFeatures.weightedGrassGen.put(
        new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 2), 1D);
    this.bopWorldFeatures.weightedGrassGen.put(
        new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 10), 0.5D);
    this.bopWorldFeatures.weightedGrassGen.put(
        new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 11), 0.5D);
  }
  public BiomeGenDeadSwamp(int id) {
    super(id);

    // TODO: setHeight()
    this.setHeight(biomeHeight);
    // TODO: setColor()
    this.setColor(9154376);
    this.setTemperatureRainfall(0.8F, 0.9F);

    this.spawnableCreatureList.clear();
    this.spawnableWaterCreatureList.clear();

    this.waterColorMultiplier = 10661201;

    this.theBiomeDecorator.treesPerChunk = 1;
    this.theBiomeDecorator.grassPerChunk = 25;
    this.theBiomeDecorator.flowersPerChunk = -999;
    this.theBiomeDecorator.reedsPerChunk = -999;
    this.theBiomeDecorator.sandPerChunk = -999;
    this.theBiomeDecorator.sandPerChunk2 = -999;

    this.bopWorldFeatures.setFeature("mudPerChunk", 3);
    this.bopWorldFeatures.setFeature("riverCanePerChunk", 2);
    this.bopWorldFeatures.setFeature("waterReedsPerChunk", 4);
    this.bopWorldFeatures.setFeature("koruPerChunk", 1);
    this.bopWorldFeatures.setFeature("seaweedPerChunk", 5);

    this.bopWorldFeatures.setFeature("bopGrassPerChunk", 25);

    this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPTallGrass(Blocks.tallgrass, 1), 0.5D);
    this.bopWorldFeatures.weightedGrassGen.put(
        new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 2), 1D);
    this.bopWorldFeatures.weightedGrassGen.put(
        new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 10), 0.5D);
    this.bopWorldFeatures.weightedGrassGen.put(
        new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 11), 0.5D);
    this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPDoubleFlora(2), 0.25D);
  }
  @Override
  public void decorate(World world, Random random, int chunkX, int chunkZ) {
    super.decorate(world, random, chunkX, chunkZ);
    int var5 = 12 + random.nextInt(6);

    for (int var6 = 0; var6 < var5; ++var6) {
      int x = chunkX + random.nextInt(16);
      int y = random.nextInt(28) + 4;
      int z = chunkZ + random.nextInt(16);

      // TODO:             getBlock()
      Block block = world.getBlock(x, y, z);

      if (block != null && block.isReplaceableOreGen(world, x, y, z, Blocks.stone)) {
        // TODO: setBlock()
        world.setBlock(x, y, z, BOPBlockHelper.get("gemOre"), 10, 2);
      }
    }
  }