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