BiomeGenShadow.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:RidiculousWorld 作者:
public void decorate(World world, Random rand, int chunkX, int chunkZ)
{
    this.theBiomeDecorator.decorateChunk(world, rand, this, chunkX, chunkZ);
    for (int j = 0; j < 3; ++j)
    {
        int x = chunkX + rand.nextInt(16) + 8;
        int z = chunkZ + rand.nextInt(16) + 8;
        /*int y = 70;
        for(int wy = 80;wy > 30;wy--){
            if(world.getBlock(x, wy, z) != Blocks.air){
                y = wy;
                break;
            }
        }*/
        int y = world.getTopSolidOrLiquidBlock(x, z);

        WorldGenAbstractTree worldgenabstracttree = func_150567_a(rand);
        worldgenabstracttree.setScale(1.0D, 1.0D, 1.0D);

        if (worldgenabstracttree.generate(world, rand, x, y, z))
        {
            worldgenabstracttree.func_150524_b(world, rand, x, y, z);
        }
    }

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号