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);
}
BiomeGenForest.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:DecompiledMinecraft
作者:
评论列表
文章目录