当前位置: 首页>>代码示例>>Java>>正文


Java WorldGenShrub类代码示例

本文整理汇总了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))));
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:BiomeGenJungle.java

示例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))));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:BiomeJungle.java

示例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))));
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:5,代码来源:BiomeGenJungle.java

示例4: func_150567_a

import net.minecraft.world.gen.feature.WorldGenShrub; //导入依赖的package包/类
public WorldGenAbstractTree func_150567_a(Random rand) {
    return new WorldGenShrub(3, 0);
}
 
开发者ID:zmaster587,项目名称:AdvancedRocketry,代码行数:4,代码来源:BiomeGenOceanSpires.java

示例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);
}
 
开发者ID:zmaster587,项目名称:AdvancedRocketry,代码行数:5,代码来源:BiomeGenMarsh.java

示例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))));
}
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:5,代码来源:BiomeGenNileJungle.java

示例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))));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:BiomeGenJungle.java

示例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))));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:8,代码来源:BiomeGenJungle.java

示例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))));
}
 
开发者ID:JennyLeeP,项目名称:JLPModJam,代码行数:8,代码来源:BiomeGenLushHills.java

示例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))));
}
 
开发者ID:JennyLeeP,项目名称:JLPModJam,代码行数:8,代码来源:BiomeGenTreacherousHills.java


注:本文中的net.minecraft.world.gen.feature.WorldGenShrub类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。