Esempio n. 1
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);
    }
  }
Esempio n. 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);

      // 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);
      }
    }
  }