本文整理汇总了Java中net.minecraft.world.gen.feature.WorldGenShrub类的典型用法代码示例。如果您正苦于以下问题:Java WorldGenShrub类的具体用法?Java WorldGenShrub怎么用?Java WorldGenShrub使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WorldGenShrub类属于net.minecraft.world.gen.feature包,在下文中一共展示了WorldGenShrub类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: genBigTreeChance
import net.minecraft.world.gen.feature.WorldGenShrub; //导入依赖的package包/类
public WorldGenAbstractTree genBigTreeChance(Random rand)
{
return (WorldGenAbstractTree)(rand.nextInt(10) == 0 ? this.worldGeneratorBigTree : (rand.nextInt(2) == 0 ? new WorldGenShrub(field_181620_aE, field_181622_aG) : (!this.field_150614_aC && rand.nextInt(3) == 0 ? new WorldGenMegaJungle(false, 10, 20, field_181620_aE, field_181621_aF) : new WorldGenTrees(false, 4 + rand.nextInt(7), field_181620_aE, field_181621_aF, true))));
}
示例2: genBigTreeChance
import net.minecraft.world.gen.feature.WorldGenShrub; //导入依赖的package包/类
public WorldGenAbstractTree genBigTreeChance(Random rand)
{
return (WorldGenAbstractTree)(rand.nextInt(10) == 0 ? BIG_TREE_FEATURE : (rand.nextInt(2) == 0 ? new WorldGenShrub(JUNGLE_LOG, OAK_LEAF) : (!this.isEdge && rand.nextInt(3) == 0 ? new WorldGenMegaJungle(false, 10, 20, JUNGLE_LOG, JUNGLE_LEAF) : new WorldGenTrees(false, 4 + rand.nextInt(7), JUNGLE_LOG, JUNGLE_LEAF, true))));
}
示例3: func_150567_a
import net.minecraft.world.gen.feature.WorldGenShrub; //导入依赖的package包/类
public WorldGenAbstractTree func_150567_a(Random p_150567_1_)
{
return (WorldGenAbstractTree)(p_150567_1_.nextInt(10) == 0 ? this.worldGeneratorBigTree : (p_150567_1_.nextInt(2) == 0 ? new WorldGenShrub(3, 0) : (!this.field_150614_aC && p_150567_1_.nextInt(3) == 0 ? new WorldGenMegaJungle(false, 10, 20, 3, 3) : new WorldGenTrees(false, 4 + p_150567_1_.nextInt(7), 3, 3, true))));
}
示例4: func_150567_a
import net.minecraft.world.gen.feature.WorldGenShrub; //导入依赖的package包/类
public WorldGenAbstractTree func_150567_a(Random rand) {
return new WorldGenShrub(3, 0);
}
示例5: func_150567_a
import net.minecraft.world.gen.feature.WorldGenShrub; //导入依赖的package包/类
public WorldGenAbstractTree func_150567_a(Random p_150567_1_)
{
return new WorldGenShrub(3, 0);
}
示例6: genBigTreeChance
import net.minecraft.world.gen.feature.WorldGenShrub; //导入依赖的package包/类
public WorldGenAbstractTree genBigTreeChance(Random p_150567_1_)
{
return (WorldGenAbstractTree)(p_150567_1_.nextInt(10) == 0 ? this.worldGeneratorBigTree : (p_150567_1_.nextInt(2) == 0 ? new WorldGenShrub(BlockPlanks.EnumType.JUNGLE.getMetadata(), BlockPlanks.EnumType.OAK.getMetadata()) : (!this.field_150614_aC && p_150567_1_.nextInt(3) == 0 ? new WorldGenMegaJungle(false, 10, 20, BlockPlanks.EnumType.JUNGLE.getMetadata(), BlockPlanks.EnumType.JUNGLE.getMetadata()) : new WorldGenTrees(false, 4 + p_150567_1_.nextInt(7), BlockPlanks.EnumType.JUNGLE.getMetadata(), BlockPlanks.EnumType.JUNGLE.getMetadata(), true))));
}
示例7: func_76740_a
import net.minecraft.world.gen.feature.WorldGenShrub; //导入依赖的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))));
}
示例8: getRandomWorldGenForTrees
import net.minecraft.world.gen.feature.WorldGenShrub; //导入依赖的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))));
}
示例9: getRandomWorldGenForTrees
import net.minecraft.world.gen.feature.WorldGenShrub; //导入依赖的package包/类
/**
* Gets a WorldGen appropriate for this biome. Use this method to add World Gen items to certain Biomes.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(10) == 4 ? new WorldGenBigSparklingTree(false) : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(3, 0) : (par1Random.nextInt(3) == 0 ? new WorldGenBrilliantTrees(false) : new WorldGenBigSparklingTree(true))));
}
示例10: getRandomWorldGenForTrees
import net.minecraft.world.gen.feature.WorldGenShrub; //导入依赖的package包/类
/**
* Gets a WorldGen appropriate for this biome. Use this method to add World Gen items to certain Biomes.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(10) == 4 ? this.worldGeneratorAshTrees : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(3, 0) : (par1Random.nextInt(3) == 0 ? new WorldGenAshTrees(false) : new WorldGenInfernalTrees(true))));
}