Examples of WorldGenTrees


Examples of net.minecraft.src.WorldGenTrees

    *
    * @param coordinate - The coordinate to generate the tree at
    * @return True if the generation was successful, false otherwise
    */
   public boolean generateTree(Coordinate coordinate) {
      return (new WorldGenTrees(true)).generate(world, random, coordinate.getBlockX(), coordinate.getBlockY(), coordinate.getBlockZ());
   }
View Full Code Here

Examples of net.minecraft.world.gen.feature.WorldGenTrees

               
                if(rand.nextInt(ChunkProviderAsteroids.TREE_CHANCE) == 0)
                {
                    int i = rand.nextInt(16) + x + 8;
                    int k = rand.nextInt(16) + z + 8;
                    new WorldGenTrees(false).generate(worldObj, rand, i, this.getTerrainHeightAt(i - x, k - z, sizeYArray, xMin, zMin, zSize, asteroidY, asteroidSize), k);
                }
                if(rand.nextInt(ChunkProviderAsteroids.TALL_GRASS_CHANCE) == 0)
                {
                    int i = rand.nextInt(16) + x + 8;
                    int k = rand.nextInt(16) + z + 8;
View Full Code Here

Examples of net.minecraft.world.gen.feature.WorldGenTrees

        addWeightedTreeGenForBiome(biome.get(), new WorldGenAbstractTree(false)
        {
            @Override
            public boolean generate(World world, Random rand, int x, int y, int z)
            {
                final WorldGenerator worldGen = new WorldGenTrees(false, 4 + rand.nextInt(7), 3, 3, true);
                return worldGen.generate(world, rand, x, y, z);
            }
        }, 12);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.