本文整理汇总了Java中net.minecraft.world.WorldType.getBiomeLayer方法的典型用法代码示例。如果您正苦于以下问题:Java WorldType.getBiomeLayer方法的具体用法?Java WorldType.getBiomeLayer怎么用?Java WorldType.getBiomeLayer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.world.WorldType
的用法示例。
在下文中一共展示了WorldType.getBiomeLayer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initializeAllBiomeGenerators
import net.minecraft.world.WorldType; //导入方法依赖的package包/类
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};
}