public WorldGenAbstractTree genBigTreeChance(Random rand)
{
return (WorldGenAbstractTree)(rand.nextInt(3) > 0 ? this.field_150634_aD : super.genBigTreeChance(rand));
}
java类net.minecraft.world.gen.feature.WorldGenAbstractTree的实例源码
BiomeGenHills.java 文件源码
项目:DecompiledMinecraft
阅读 26
收藏 0
点赞 0
评论 0
BiomeGenForest.java 文件源码
项目:DecompiledMinecraft
阅读 27
收藏 0
点赞 0
评论 0
public WorldGenAbstractTree genBigTreeChance(Random rand)
{
return (WorldGenAbstractTree)(this.field_150632_aF == 3 && rand.nextInt(3) > 0 ? field_150631_aE : (this.field_150632_aF != 2 && rand.nextInt(5) != 0 ? this.worldGeneratorTrees : field_150630_aD));
}
BiomeGenForest.java 文件源码
项目:DecompiledMinecraft
阅读 29
收藏 0
点赞 0
评论 0
public void decorate(World worldIn, Random rand, BlockPos pos)
{
if (this.field_150632_aF == 3)
{
for (int i = 0; i < 4; ++i)
{
for (int j = 0; j < 4; ++j)
{
int k = i * 4 + 1 + 8 + rand.nextInt(3);
int l = j * 4 + 1 + 8 + rand.nextInt(3);
BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));
if (rand.nextInt(20) == 0)
{
WorldGenBigMushroom worldgenbigmushroom = new WorldGenBigMushroom();
worldgenbigmushroom.generate(worldIn, rand, blockpos);
}
else
{
WorldGenAbstractTree worldgenabstracttree = this.genBigTreeChance(rand);
worldgenabstracttree.func_175904_e();
if (worldgenabstracttree.generate(worldIn, rand, blockpos))
{
worldgenabstracttree.func_180711_a(worldIn, rand, blockpos);
}
}
}
}
}
int j1 = rand.nextInt(5) - 3;
if (this.field_150632_aF == 1)
{
j1 += 2;
}
for (int k1 = 0; k1 < j1; ++k1)
{
int l1 = rand.nextInt(3);
if (l1 == 0)
{
DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SYRINGA);
}
else if (l1 == 1)
{
DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.ROSE);
}
else if (l1 == 2)
{
DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.PAEONIA);
}
for (int i2 = 0; i2 < 5; ++i2)
{
int j2 = rand.nextInt(16) + 8;
int k2 = rand.nextInt(16) + 8;
int i1 = rand.nextInt(worldIn.getHeight(pos.add(j2, 0, k2)).getY() + 32);
if (DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, new BlockPos(pos.getX() + j2, i1, pos.getZ() + k2)))
{
break;
}
}
}
super.decorate(worldIn, rand, pos);
}
BiomeGenJungle.java 文件源码
项目:DecompiledMinecraft
阅读 34
收藏 0
点赞 0
评论 0
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))));
}
BiomeGenSavanna.java 文件源码
项目:DecompiledMinecraft
阅读 25
收藏 0
点赞 0
评论 0
public WorldGenAbstractTree genBigTreeChance(Random rand)
{
return (WorldGenAbstractTree)(rand.nextInt(5) > 0 ? field_150627_aC : this.worldGeneratorTrees);
}
BiomeGenTaiga.java 文件源码
项目:DecompiledMinecraft
阅读 29
收藏 0
点赞 0
评论 0
public WorldGenAbstractTree genBigTreeChance(Random rand)
{
return (WorldGenAbstractTree)((this.field_150644_aH == 1 || this.field_150644_aH == 2) && rand.nextInt(3) == 0 ? (this.field_150644_aH != 2 && rand.nextInt(13) != 0 ? field_150641_aE : field_150642_aF) : (rand.nextInt(3) == 0 ? field_150639_aC : field_150640_aD));
}
BiomeGenBase.java 文件源码
项目:DecompiledMinecraft
阅读 27
收藏 0
点赞 0
评论 0
public WorldGenAbstractTree genBigTreeChance(Random rand)
{
return (WorldGenAbstractTree)(rand.nextInt(10) == 0 ? this.worldGeneratorBigTree : this.worldGeneratorTrees);
}
BiomeGenMesa.java 文件源码
项目:DecompiledMinecraft
阅读 31
收藏 0
点赞 0
评论 0
public WorldGenAbstractTree genBigTreeChance(Random rand)
{
return this.worldGeneratorTrees;
}
BiomeGenSwamp.java 文件源码
项目:DecompiledMinecraft
阅读 26
收藏 0
点赞 0
评论 0
public WorldGenAbstractTree genBigTreeChance(Random rand)
{
return this.worldGeneratorSwamp;
}
BiomeGenMutated.java 文件源码
项目:DecompiledMinecraft
阅读 24
收藏 0
点赞 0
评论 0
public WorldGenAbstractTree genBigTreeChance(Random rand)
{
return this.baseBiome.genBigTreeChance(rand);
}