當前位置: 首頁>>代碼示例>>Java>>正文


Java WorldType.LARGE_BIOMES屬性代碼示例

本文整理匯總了Java中net.minecraft.world.WorldType.LARGE_BIOMES屬性的典型用法代碼示例。如果您正苦於以下問題:Java WorldType.LARGE_BIOMES屬性的具體用法?Java WorldType.LARGE_BIOMES怎麽用?Java WorldType.LARGE_BIOMES使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在net.minecraft.world.WorldType的用法示例。


在下文中一共展示了WorldType.LARGE_BIOMES屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initializeAllBiomeGenerators

public static GenLayer[] initializeAllBiomeGenerators(long seed, WorldType p_180781_2_, String p_180781_3_)
{
    GenLayer genlayer = new GenLayerIsland(1L);
    genlayer = new GenLayerFuzzyZoom(2000L, genlayer);
    GenLayerAddIsland genlayeraddisland = new GenLayerAddIsland(1L, genlayer);
    GenLayerZoom genlayerzoom = new GenLayerZoom(2001L, genlayeraddisland);
    GenLayerAddIsland genlayeraddisland1 = new GenLayerAddIsland(2L, genlayerzoom);
    genlayeraddisland1 = new GenLayerAddIsland(50L, genlayeraddisland1);
    genlayeraddisland1 = new GenLayerAddIsland(70L, genlayeraddisland1);
    GenLayerRemoveTooMuchOcean genlayerremovetoomuchocean = new GenLayerRemoveTooMuchOcean(2L, genlayeraddisland1);
    GenLayerAddSnow genlayeraddsnow = new GenLayerAddSnow(2L, genlayerremovetoomuchocean);
    GenLayerAddIsland genlayeraddisland2 = new GenLayerAddIsland(3L, genlayeraddsnow);
    GenLayerEdge genlayeredge = new GenLayerEdge(2L, genlayeraddisland2, GenLayerEdge.Mode.COOL_WARM);
    genlayeredge = new GenLayerEdge(2L, genlayeredge, GenLayerEdge.Mode.HEAT_ICE);
    genlayeredge = new GenLayerEdge(3L, genlayeredge, GenLayerEdge.Mode.SPECIAL);
    GenLayerZoom genlayerzoom1 = new GenLayerZoom(2002L, genlayeredge);
    genlayerzoom1 = new GenLayerZoom(2003L, genlayerzoom1);
    GenLayerAddIsland genlayeraddisland3 = new GenLayerAddIsland(4L, genlayerzoom1);
    GenLayerAddMushroomIsland genlayeraddmushroomisland = new GenLayerAddMushroomIsland(5L, genlayeraddisland3);
    GenLayerDeepOcean genlayerdeepocean = new GenLayerDeepOcean(4L, genlayeraddmushroomisland);
    GenLayer genlayer4 = GenLayerZoom.magnify(1000L, genlayerdeepocean, 0);
    ChunkProviderSettings chunkprovidersettings = null;
    int i = 4;
    int j = i;

    if (p_180781_2_ == WorldType.CUSTOMIZED && p_180781_3_.length() > 0)
    {
        chunkprovidersettings = ChunkProviderSettings.Factory.jsonToFactory(p_180781_3_).func_177864_b();
        i = chunkprovidersettings.biomeSize;
        j = chunkprovidersettings.riverSize;
    }

    if (p_180781_2_ == WorldType.LARGE_BIOMES)
    {
        i = 6;
    }

    GenLayer lvt_8_1_ = GenLayerZoom.magnify(1000L, genlayer4, 0);
    GenLayerRiverInit genlayerriverinit = new GenLayerRiverInit(100L, lvt_8_1_);
    GenLayerBiome lvt_9_1_ = new GenLayerBiome(200L, genlayer4, p_180781_2_, p_180781_3_);
    GenLayer genlayer6 = GenLayerZoom.magnify(1000L, lvt_9_1_, 2);
    GenLayerBiomeEdge genlayerbiomeedge = new GenLayerBiomeEdge(1000L, genlayer6);
    GenLayer lvt_10_1_ = GenLayerZoom.magnify(1000L, genlayerriverinit, 2);
    GenLayer genlayerhills = new GenLayerHills(1000L, genlayerbiomeedge, lvt_10_1_);
    GenLayer genlayer5 = GenLayerZoom.magnify(1000L, genlayerriverinit, 2);
    genlayer5 = GenLayerZoom.magnify(1000L, genlayer5, j);
    GenLayerRiver genlayerriver = new GenLayerRiver(1L, genlayer5);
    GenLayerSmooth genlayersmooth = new GenLayerSmooth(1000L, genlayerriver);
    genlayerhills = new GenLayerRareBiome(1001L, genlayerhills);

    for (int k = 0; k < i; ++k)
    {
        genlayerhills = new GenLayerZoom((long)(1000 + k), genlayerhills);

        if (k == 0)
        {
            genlayerhills = new GenLayerAddIsland(3L, genlayerhills);
        }

        if (k == 1 || i == 1)
        {
            genlayerhills = new GenLayerShore(1000L, genlayerhills);
        }
    }

    GenLayerSmooth genlayersmooth1 = new GenLayerSmooth(1000L, genlayerhills);
    GenLayerRiverMix genlayerrivermix = new GenLayerRiverMix(100L, genlayersmooth1, genlayersmooth);
    GenLayer genlayer3 = new GenLayerVoronoiZoom(10L, genlayerrivermix);
    genlayerrivermix.initWorldGenSeed(seed);
    genlayer3.initWorldGenSeed(seed);
    return new GenLayer[] {genlayerrivermix, genlayer3, genlayerrivermix};
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:72,代碼來源:GenLayer.java

示例2: initializeAllBiomeGenerators

public static GenLayer[] initializeAllBiomeGenerators(long seed, WorldType p_180781_2_, ChunkProviderSettings p_180781_3_)
{
    GenLayer genlayer = new GenLayerIsland(1L);
    genlayer = new GenLayerFuzzyZoom(2000L, genlayer);
    GenLayerAddIsland genlayeraddisland = new GenLayerAddIsland(1L, genlayer);
    GenLayerZoom genlayerzoom = new GenLayerZoom(2001L, genlayeraddisland);
    GenLayerAddIsland genlayeraddisland1 = new GenLayerAddIsland(2L, genlayerzoom);
    genlayeraddisland1 = new GenLayerAddIsland(50L, genlayeraddisland1);
    genlayeraddisland1 = new GenLayerAddIsland(70L, genlayeraddisland1);
    GenLayerRemoveTooMuchOcean genlayerremovetoomuchocean = new GenLayerRemoveTooMuchOcean(2L, genlayeraddisland1);
    GenLayerAddSnow genlayeraddsnow = new GenLayerAddSnow(2L, genlayerremovetoomuchocean);
    GenLayerAddIsland genlayeraddisland2 = new GenLayerAddIsland(3L, genlayeraddsnow);
    GenLayerEdge genlayeredge = new GenLayerEdge(2L, genlayeraddisland2, GenLayerEdge.Mode.COOL_WARM);
    genlayeredge = new GenLayerEdge(2L, genlayeredge, GenLayerEdge.Mode.HEAT_ICE);
    genlayeredge = new GenLayerEdge(3L, genlayeredge, GenLayerEdge.Mode.SPECIAL);
    GenLayerZoom genlayerzoom1 = new GenLayerZoom(2002L, genlayeredge);
    genlayerzoom1 = new GenLayerZoom(2003L, genlayerzoom1);
    GenLayerAddIsland genlayeraddisland3 = new GenLayerAddIsland(4L, genlayerzoom1);
    GenLayerAddMushroomIsland genlayeraddmushroomisland = new GenLayerAddMushroomIsland(5L, genlayeraddisland3);
    GenLayerDeepOcean genlayerdeepocean = new GenLayerDeepOcean(4L, genlayeraddmushroomisland);
    GenLayer genlayer4 = GenLayerZoom.magnify(1000L, genlayerdeepocean, 0);
    int i = 4;
    int j = i;

    if (p_180781_3_ != null)
    {
        i = p_180781_3_.biomeSize;
        j = p_180781_3_.riverSize;
    }

    if (p_180781_2_ == WorldType.LARGE_BIOMES)
    {
        i = 6;
    }

    GenLayer lvt_7_1_ = GenLayerZoom.magnify(1000L, genlayer4, 0);
    GenLayerRiverInit genlayerriverinit = new GenLayerRiverInit(100L, lvt_7_1_);
    GenLayerBiome lvt_8_1_ = new GenLayerBiome(200L, genlayer4, p_180781_2_, p_180781_3_);
    GenLayer genlayer6 = GenLayerZoom.magnify(1000L, lvt_8_1_, 2);
    GenLayerBiomeEdge genlayerbiomeedge = new GenLayerBiomeEdge(1000L, genlayer6);
    GenLayer lvt_9_1_ = GenLayerZoom.magnify(1000L, genlayerriverinit, 2);
    GenLayer genlayerhills = new GenLayerHills(1000L, genlayerbiomeedge, lvt_9_1_);
    GenLayer genlayer5 = GenLayerZoom.magnify(1000L, genlayerriverinit, 2);
    genlayer5 = GenLayerZoom.magnify(1000L, genlayer5, j);
    GenLayerRiver genlayerriver = new GenLayerRiver(1L, genlayer5);
    GenLayerSmooth genlayersmooth = new GenLayerSmooth(1000L, genlayerriver);
    genlayerhills = new GenLayerRareBiome(1001L, genlayerhills);

    for (int k = 0; k < i; ++k)
    {
        genlayerhills = new GenLayerZoom((long)(1000 + k), genlayerhills);

        if (k == 0)
        {
            genlayerhills = new GenLayerAddIsland(3L, genlayerhills);
        }

        if (k == 1 || i == 1)
        {
            genlayerhills = new GenLayerShore(1000L, genlayerhills);
        }
    }

    GenLayerSmooth genlayersmooth1 = new GenLayerSmooth(1000L, genlayerhills);
    GenLayerRiverMix genlayerrivermix = new GenLayerRiverMix(100L, genlayersmooth1, genlayersmooth);
    GenLayer genlayer3 = new GenLayerVoronoiZoom(10L, genlayerrivermix);
    genlayerrivermix.initWorldGenSeed(seed);
    genlayer3.initWorldGenSeed(seed);
    return new GenLayer[] {genlayerrivermix, genlayer3, genlayerrivermix};
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:70,代碼來源:GenLayer.java

示例3: initializeAllBiomeGenerators

public static GenLayer[] initializeAllBiomeGenerators(long seed, WorldType p_180781_2_, String p_180781_3_)
{
    GenLayer genlayer = new GenLayerIsland(1L);
    genlayer = new GenLayerFuzzyZoom(2000L, genlayer);
    GenLayerAddIsland genlayeraddisland = new GenLayerAddIsland(1L, genlayer);
    GenLayerZoom genlayerzoom = new GenLayerZoom(2001L, genlayeraddisland);
    GenLayerAddIsland genlayeraddisland1 = new GenLayerAddIsland(2L, genlayerzoom);
    genlayeraddisland1 = new GenLayerAddIsland(50L, genlayeraddisland1);
    genlayeraddisland1 = new GenLayerAddIsland(70L, genlayeraddisland1);
    GenLayerRemoveTooMuchOcean genlayerremovetoomuchocean = new GenLayerRemoveTooMuchOcean(2L, genlayeraddisland1);
    GenLayerAddSnow genlayeraddsnow = new GenLayerAddSnow(2L, genlayerremovetoomuchocean);
    GenLayerAddIsland genlayeraddisland2 = new GenLayerAddIsland(3L, genlayeraddsnow);
    GenLayerEdge genlayeredge = new GenLayerEdge(2L, genlayeraddisland2, GenLayerEdge.Mode.COOL_WARM);
    genlayeredge = new GenLayerEdge(2L, genlayeredge, GenLayerEdge.Mode.HEAT_ICE);
    genlayeredge = new GenLayerEdge(3L, genlayeredge, GenLayerEdge.Mode.SPECIAL);
    GenLayerZoom genlayerzoom1 = new GenLayerZoom(2002L, genlayeredge);
    genlayerzoom1 = new GenLayerZoom(2003L, genlayerzoom1);
    GenLayerAddIsland genlayeraddisland3 = new GenLayerAddIsland(4L, genlayerzoom1);
    GenLayerAddMushroomIsland genlayeraddmushroomisland = new GenLayerAddMushroomIsland(5L, genlayeraddisland3);
    GenLayerDeepOcean genlayerdeepocean = new GenLayerDeepOcean(4L, genlayeraddmushroomisland);
    GenLayer genlayer4 = GenLayerZoom.magnify(1000L, genlayerdeepocean, 0);
    int i = 4;
    int j = i;

    if (p_180781_2_ == WorldType.CUSTOMIZED && !p_180781_3_.isEmpty())
    {
        ChunkProviderSettings chunkprovidersettings = ChunkProviderSettings.Factory.jsonToFactory(p_180781_3_).build();
        i = chunkprovidersettings.biomeSize;
        j = chunkprovidersettings.riverSize;
    }

    if (p_180781_2_ == WorldType.LARGE_BIOMES)
    {
        i = 6;
    }

    i = getModdedBiomeSize(p_180781_2_, i);

    GenLayer lvt_8_1_ = GenLayerZoom.magnify(1000L, genlayer4, 0);
    GenLayerRiverInit genlayerriverinit = new GenLayerRiverInit(100L, lvt_8_1_);
    GenLayer lvt_10_1_ = GenLayerZoom.magnify(1000L, genlayerriverinit, 2);
    GenLayer genlayerbiomeedge = p_180781_2_.getBiomeLayer(seed, genlayer4, p_180781_3_);
    GenLayer genlayerhills = new GenLayerHills(1000L, genlayerbiomeedge, lvt_10_1_);
    GenLayer genlayer5 = GenLayerZoom.magnify(1000L, genlayerriverinit, 2);
    genlayer5 = GenLayerZoom.magnify(1000L, genlayer5, j);
    GenLayerRiver genlayerriver = new GenLayerRiver(1L, genlayer5);
    GenLayerSmooth genlayersmooth = new GenLayerSmooth(1000L, genlayerriver);
    genlayerhills = new GenLayerRareBiome(1001L, genlayerhills);

    for (int k = 0; k < i; ++k)
    {
        genlayerhills = new GenLayerZoom((long)(1000 + k), genlayerhills);

        if (k == 0)
        {
            genlayerhills = new GenLayerAddIsland(3L, genlayerhills);
        }

        if (k == 1 || i == 1)
        {
            genlayerhills = new GenLayerShore(1000L, genlayerhills);
        }
    }

    GenLayerSmooth genlayersmooth1 = new GenLayerSmooth(1000L, genlayerhills);
    GenLayerRiverMix genlayerrivermix = new GenLayerRiverMix(100L, genlayersmooth1, genlayersmooth);
    GenLayer genlayer3 = new GenLayerVoronoiZoom(10L, genlayerrivermix);
    genlayerrivermix.initWorldGenSeed(seed);
    genlayer3.initWorldGenSeed(seed);
    return new GenLayer[] {genlayerrivermix, genlayer3, genlayerrivermix};
}
 
開發者ID:F1r3w477,項目名稱:CustomWorldGen,代碼行數:71,代碼來源:GenLayer.java


注:本文中的net.minecraft.world.WorldType.LARGE_BIOMES屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。