CityGenerator.java 文件源码

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

项目:rezolve 作者:
private void generateBuilding(
    Random rand, int chunkX, int groundY, int chunkZ, int chunkSize, int towerFloors, 
    World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) 
{

    this.prepareSpace(world, chunkX, groundY, chunkZ, chunkSize, Blocks.AIR.getDefaultState());
    this.drawStandardRoads(world, chunkX, groundY, chunkZ, chunkSize);
    this.drawStandardSidewalks(world, chunkX, groundY, chunkZ, chunkSize);

    // Draw the tower   
    this.generateTower(rand, world, chunkX * 16 + 4, groundY + 1, chunkZ * 16 + 4, chunkSize - 8, chunkSize - 8, towerFloors);

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号