本文整理匯總了Java中net.minecraft.world.biome.BiomeGenBase.plains方法的典型用法代碼示例。如果您正苦於以下問題:Java BiomeGenBase.plains方法的具體用法?Java BiomeGenBase.plains怎麽用?Java BiomeGenBase.plains使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.world.biome.BiomeGenBase
的用法示例。
在下文中一共展示了BiomeGenBase.plains方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: registerWorldChunkManager
import net.minecraft.world.biome.BiomeGenBase; //導入方法依賴的package包/類
/**
* creates a new world chunk manager for WorldProvider
*/
protected void registerWorldChunkManager()
{
WorldType worldtype = this.worldObj.getWorldInfo().getTerrainType();
if (worldtype == WorldType.FLAT)
{
FlatGeneratorInfo flatgeneratorinfo = FlatGeneratorInfo.createFlatGeneratorFromString(this.worldObj.getWorldInfo().getGeneratorOptions());
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.getBiomeFromBiomeList(flatgeneratorinfo.getBiome(), BiomeGenBase.field_180279_ad), 0.5F);
}
else if (worldtype == WorldType.DEBUG_WORLD)
{
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.plains, 0.0F);
}
else
{
this.worldChunkMgr = new WorldChunkManager(this.worldObj);
}
}
示例2: getBiome
import net.minecraft.world.biome.BiomeGenBase; //導入方法依賴的package包/類
public BiomeGenBase getBiome(BlockPos pos, WorldChunkManager chunkManager)
{
int i = pos.getX() & 15;
int j = pos.getZ() & 15;
int k = this.blockBiomeArray[j << 4 | i] & 255;
if (k == 255)
{
BiomeGenBase biomegenbase = chunkManager.getBiomeGenerator(pos, BiomeGenBase.plains);
k = biomegenbase.biomeID;
this.blockBiomeArray[j << 4 | i] = (byte)(k & 255);
}
BiomeGenBase biomegenbase1 = BiomeGenBase.getBiome(k);
return biomegenbase1 == null ? BiomeGenBase.plains : biomegenbase1;
}
示例3: GenLayerBiome
import net.minecraft.world.biome.BiomeGenBase; //導入方法依賴的package包/類
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;
}
}
示例4: getColorBiome
import net.minecraft.world.biome.BiomeGenBase; //導入方法依賴的package包/類
protected static BiomeGenBase getColorBiome(IBlockAccess p_getColorBiome_0_, BlockPos p_getColorBiome_1_)
{
BiomeGenBase biomegenbase = p_getColorBiome_0_.getBiomeGenForCoords(p_getColorBiome_1_);
if (biomegenbase == BiomeGenBase.swampland && !Config.isSwampColors())
{
biomegenbase = BiomeGenBase.plains;
}
return biomegenbase;
}