WorldGenerator.java 文件源码

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

项目:Got-Wood 作者:
private void makeTree(WorldGenAbstractTree tree, int chunkX, int chunkZ, Random random, World world, int min, int max) {

        int num = min + random.nextInt(max - min);
        for (int i = 0; i < num; i++) {
            int randX = chunkX * 16 + 8 + random.nextInt(16);
            int randZ = chunkZ * 16 + 8 + random.nextInt(16);
            tree.generate(world, random, world.getHeight(new BlockPos(randX, 0, randZ)));
        }
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号