本文整理汇总了Java中net.minecraft.world.gen.feature.WorldGenHugeTrees类的典型用法代码示例。如果您正苦于以下问题:Java WorldGenHugeTrees类的具体用法?Java WorldGenHugeTrees怎么用?Java WorldGenHugeTrees使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WorldGenHugeTrees类属于net.minecraft.world.gen.feature包,在下文中一共展示了WorldGenHugeTrees类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_76740_a
import net.minecraft.world.gen.feature.WorldGenHugeTrees; //导入依赖的package包/类
public WorldGenerator func_76740_a(Random p_76740_1_) {
return (WorldGenerator)(p_76740_1_.nextInt(10) == 0?this.field_76758_O:(p_76740_1_.nextInt(2) == 0?new WorldGenShrub(3, 0):(p_76740_1_.nextInt(3) == 0?new WorldGenHugeTrees(false, 10 + p_76740_1_.nextInt(20), 3, 3):new WorldGenTrees(false, 4 + p_76740_1_.nextInt(7), 3, 3, true))));
}
示例2: getRandomWorldGenForTrees
import net.minecraft.world.gen.feature.WorldGenHugeTrees; //导入依赖的package包/类
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(3, 0) : (par1Random.nextInt(3) == 0 ? new WorldGenHugeTrees(false, 10 + par1Random.nextInt(20), 3, 3) : new WorldGenTrees(false, 4 + par1Random.nextInt(7), 3, 3, true))));
}
示例3: getRandomWorldGenForTrees
import net.minecraft.world.gen.feature.WorldGenHugeTrees; //导入依赖的package包/类
/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenHugeTrees(false, 10 + par1Random.nextInt(20), 3, 3) : new WorldGenTrees(false, 4 + par1Random.nextInt(7), 3, 3, true)));
}