本文整理汇总了Java中net.minecraft.world.WorldType.DEFAULT_1_1属性的典型用法代码示例。如果您正苦于以下问题:Java WorldType.DEFAULT_1_1属性的具体用法?Java WorldType.DEFAULT_1_1怎么用?Java WorldType.DEFAULT_1_1使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类net.minecraft.world.WorldType
的用法示例。
在下文中一共展示了WorldType.DEFAULT_1_1属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: GenLayerBiome
public GenLayerBiome(long p_i45560_1_, GenLayer p_i45560_3_, WorldType p_i45560_4_, String p_i45560_5_)
{
super(p_i45560_1_);
this.parent = p_i45560_3_;
if (p_i45560_4_ == WorldType.DEFAULT_1_1)
{
this.field_151623_c = new BiomeGenBase[] {BiomeGenBase.desert, BiomeGenBase.forest, BiomeGenBase.extremeHills, BiomeGenBase.swampland, BiomeGenBase.plains, BiomeGenBase.taiga};
this.field_175973_g = null;
}
else if (p_i45560_4_ == WorldType.CUSTOMIZED)
{
this.field_175973_g = ChunkProviderSettings.Factory.jsonToFactory(p_i45560_5_).func_177864_b();
}
else
{
this.field_175973_g = null;
}
}
示例2: GenLayerBiome
public GenLayerBiome(long p_i45560_1_, GenLayer p_i45560_3_, WorldType p_i45560_4_, ChunkProviderSettings p_i45560_5_)
{
super(p_i45560_1_);
this.parent = p_i45560_3_;
if (p_i45560_4_ == WorldType.DEFAULT_1_1)
{
this.warmBiomes = new Biome[] {Biomes.DESERT, Biomes.FOREST, Biomes.EXTREME_HILLS, Biomes.SWAMPLAND, Biomes.PLAINS, Biomes.TAIGA};
this.settings = null;
}
else
{
this.settings = p_i45560_5_;
}
}
示例3: GenLayerBiome
public GenLayerBiome(long p_i45560_1_, GenLayer p_i45560_3_, WorldType p_i45560_4_, String p_i45560_5_)
{
super(p_i45560_1_);
this.parent = p_i45560_3_;
for (net.minecraftforge.common.BiomeManager.BiomeType type : net.minecraftforge.common.BiomeManager.BiomeType.values())
{
com.google.common.collect.ImmutableList<net.minecraftforge.common.BiomeManager.BiomeEntry> biomesToAdd = net.minecraftforge.common.BiomeManager.getBiomes(type);
int idx = type.ordinal();
if (biomes[idx] == null) biomes[idx] = new java.util.ArrayList<net.minecraftforge.common.BiomeManager.BiomeEntry>();
if (biomesToAdd != null) biomes[idx].addAll(biomesToAdd);
}
int desertIdx = net.minecraftforge.common.BiomeManager.BiomeType.DESERT.ordinal();
biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.DESERT, 30));
biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.SAVANNA, 20));
biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.PLAINS, 10));
if (p_i45560_4_ == WorldType.DEFAULT_1_1)
{
biomes[desertIdx].clear();
biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.DESERT, 10));
biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.FOREST, 10));
biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.EXTREME_HILLS, 10));
biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.SWAMPLAND, 10));
biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.PLAINS, 10));
biomes[desertIdx].add(new net.minecraftforge.common.BiomeManager.BiomeEntry(Biomes.TAIGA, 10));
this.settings = null;
}
else if (p_i45560_4_ == WorldType.CUSTOMIZED)
{
this.settings = ChunkProviderSettings.Factory.jsonToFactory(p_i45560_5_).build();
}
else
{
this.settings = null;
}
}