Пример #1
0
  /**
   * the first array item is a linked list of the bioms, the second is the zoom function, the third
   * is the same as the first.
   */
  public static GenLayer[] initializeAllBiomeGenerators(long par0, WorldType par2WorldType) {
    GenLayerIsland genlayerisland = new GenLayerIsland(1L);
    GenLayerFuzzyZoom genlayerfuzzyzoom = new GenLayerFuzzyZoom(2000L, genlayerisland);
    GenLayerAddIsland genlayeraddisland = new GenLayerAddIsland(1L, genlayerfuzzyzoom);
    GenLayerZoom genlayerzoom = new GenLayerZoom(2001L, genlayeraddisland);
    genlayeraddisland = new GenLayerAddIsland(2L, genlayerzoom);
    GenLayerAddSnow genlayeraddsnow = new GenLayerAddSnow(2L, genlayeraddisland);
    genlayerzoom = new GenLayerZoom(2002L, genlayeraddsnow);
    genlayeraddisland = new GenLayerAddIsland(3L, genlayerzoom);
    genlayerzoom = new GenLayerZoom(2003L, genlayeraddisland);
    genlayeraddisland = new GenLayerAddIsland(4L, genlayerzoom);
    GenLayerAddMushroomIsland genlayeraddmushroomisland =
        new GenLayerAddMushroomIsland(5L, genlayeraddisland);
    byte b0 = 4;

    if (par2WorldType == WorldType.LARGE_BIOMES) {
      b0 = 6;
    }
    b0 = getModdedBiomeSize(par2WorldType, b0);

    GenLayer genlayer = GenLayerZoom.magnify(1000L, genlayeraddmushroomisland, 0);
    GenLayerRiverInit genlayerriverinit = new GenLayerRiverInit(100L, genlayer);
    genlayer = GenLayerZoom.magnify(1000L, genlayerriverinit, b0 + 2);
    GenLayerRiver genlayerriver = new GenLayerRiver(1L, genlayer);
    GenLayerSmooth genlayersmooth = new GenLayerSmooth(1000L, genlayerriver);
    GenLayer genlayer1 = GenLayerZoom.magnify(1000L, genlayeraddmushroomisland, 0);
    GenLayerBiome genlayerbiome = new GenLayerBiome(200L, genlayer1, par2WorldType);
    genlayer1 = GenLayerZoom.magnify(1000L, genlayerbiome, 2);
    Object object = new GenLayerHills(1000L, genlayer1);

    for (int j = 0; j < b0; ++j) {
      object = new GenLayerZoom((long) (1000 + j), (GenLayer) object);

      if (j == 0) {
        object = new GenLayerAddIsland(3L, (GenLayer) object);
      }

      if (j == 1) {
        object = new GenLayerShore(1000L, (GenLayer) object);
      }

      if (j == 1) {
        object = new GenLayerSwampRivers(1000L, (GenLayer) object);
      }
    }

    GenLayerSmooth genlayersmooth1 = new GenLayerSmooth(1000L, (GenLayer) object);
    GenLayerRiverMix genlayerrivermix = new GenLayerRiverMix(100L, genlayersmooth1, genlayersmooth);
    GenLayerVoronoiZoom genlayervoronoizoom = new GenLayerVoronoiZoom(10L, genlayerrivermix);
    genlayerrivermix.initWorldGenSeed(par0);
    genlayervoronoizoom.initWorldGenSeed(par0);
    return new GenLayer[] {genlayerrivermix, genlayervoronoizoom, genlayerrivermix};
  }
Пример #2
0
  /**
   * the first array item is a linked list of the bioms, the second is the zoom function, the third
   * is the same as the first.
   */
  public static GenLayer[] initializeAllBiomeGenerators(long par0, WorldType par2WorldType) {
    boolean var3 = false;
    GenLayerIsland var4 = new GenLayerIsland(1L);
    GenLayerFuzzyZoom var11 = new GenLayerFuzzyZoom(2000L, var4);
    GenLayerAddIsland var12 = new GenLayerAddIsland(1L, var11);
    GenLayerZoom var13 = new GenLayerZoom(2001L, var12);
    var12 = new GenLayerAddIsland(2L, var13);
    var12 = new GenLayerAddIsland(50L, var12);
    var12 = new GenLayerAddIsland(70L, var12);
    GenLayerRemoveTooMuchOcean var16 = new GenLayerRemoveTooMuchOcean(2L, var12);
    GenLayerAddSnow var14 = new GenLayerAddSnow(2L, var16);
    var12 = new GenLayerAddIsland(3L, var14);
    GenLayerEdge var19 = new GenLayerEdge(2L, var12, GenLayerEdge.Mode.COOL_WARM);
    var19 = new GenLayerEdge(2L, var19, GenLayerEdge.Mode.HEAT_ICE);
    var19 = new GenLayerEdge(3L, var19, GenLayerEdge.Mode.SPECIAL);
    var13 = new GenLayerZoom(2002L, var19);
    var13 = new GenLayerZoom(2003L, var13);
    var12 = new GenLayerAddIsland(4L, var13);
    GenLayerAddMushroomIsland var22 = new GenLayerAddMushroomIsland(5L, var12);
    GenLayerDeepOcean var24 = new GenLayerDeepOcean(4L, var22);
    GenLayer var23 = GenLayerZoom.magnify(1000L, var24, 0);
    byte var5 = 4;

    if (par2WorldType == WorldType.LARGE_BIOMES) {
      var5 = 6;
    }

    if (var3) {
      var5 = 4;
    }

    GenLayer var6 = GenLayerZoom.magnify(1000L, var23, 0);
    GenLayerRiverInit var15 = new GenLayerRiverInit(100L, var6);
    Object var7 = new GenLayerBiome(200L, var23, par2WorldType);

    if (!var3) {
      GenLayer var18 = GenLayerZoom.magnify(1000L, (GenLayer) var7, 2);
      var7 = new GenLayerBiomeEdge(1000L, var18);
    }

    GenLayer var8 = GenLayerZoom.magnify(1000L, var15, 2);
    GenLayerHills var21 = new GenLayerHills(1000L, (GenLayer) var7, var8);
    var6 = GenLayerZoom.magnify(1000L, var15, 2);
    var6 = GenLayerZoom.magnify(1000L, var6, var5);
    GenLayerRiver var17 = new GenLayerRiver(1L, var6);
    GenLayerSmooth var20 = new GenLayerSmooth(1000L, var17);
    var7 = new GenLayerRareBiome(1001L, var21);

    for (int var9 = 0; var9 < var5; ++var9) {
      var7 = new GenLayerZoom((long) (1000 + var9), (GenLayer) var7);

      if (var9 == 0) {
        var7 = new GenLayerAddIsland(3L, (GenLayer) var7);
      }

      if (var9 == 1) {
        var7 = new GenLayerShore(1000L, (GenLayer) var7);
      }
    }

    GenLayerSmooth var25 = new GenLayerSmooth(1000L, (GenLayer) var7);
    GenLayerRiverMix var26 = new GenLayerRiverMix(100L, var25, var20);
    GenLayerVoronoiZoom var10 = new GenLayerVoronoiZoom(10L, var26);
    var26.initWorldGenSeed(par0);
    var10.initWorldGenSeed(par0);
    return new GenLayer[] {var26, var10, var26};
  }