Package forestry.arboriculture.worldgen

Examples of forestry.arboriculture.worldgen.WorldGenBalsa


    int x = (int) player.posX;
    int y = (int) (player.posY);
    int z = (int) player.posZ;

    WorldGenerator gen = new WorldGenBalsa((ITreeGenData) PluginArboriculture.treeInterface.getTree(player.worldObj,
        TreeTemplates.templateAsGenome(PluginArboriculture.treeInterface.getTemplate("treeBalsa"))));

    gen.generate(player.worldObj, player.worldObj.rand, x, y, z);

  }
View Full Code Here


    int x = (int) player.posX - 16;
    int y = (int) (player.posY);
    int z = (int) player.posZ - 16;

    WorldGenerator gen = new WorldGenBalsa((ITreeGenData) PluginArboriculture.treeInterface.getTree(player.worldObj,
        TreeTemplates.templateAsGenome(PluginArboriculture.treeInterface.getTemplate("treeBalsa"))));

    for (int i = 0; i < 16; i++)
      gen.generate(player.worldObj, player.worldObj.rand, x + player.worldObj.rand.nextInt(32), y, z + player.worldObj.rand.nextInt(32));
  }
View Full Code Here

TOP

Related Classes of forestry.arboriculture.worldgen.WorldGenBalsa

Copyright © 2018 www.massapicom. 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.