Package forestry.apiculture.worldgen

Examples of forestry.apiculture.worldgen.WorldGenHiveSwamer


  }

  private void trySpawnSwarm() {

    ItemStack toSpawn = pendingSpawns.peek();
    WorldGenHive generator = new WorldGenHiveSwamer(new ItemStack[] { toSpawn });

    int i = 0;
    while (i < 10) {
      i++;
      int spawnX = xCoord + worldObj.rand.nextInt(40 * 2) - 40;
      int spawnY = yCoord + worldObj.rand.nextInt(40);
      int spawnZ = zCoord + worldObj.rand.nextInt(40 * 2) - 40;
      if (generator.generate(worldObj, worldObj.rand, spawnX, spawnY, spawnZ)) {
        pendingSpawns.pop();
        break;
      }
    }

View Full Code Here

TOP

Related Classes of forestry.apiculture.worldgen.WorldGenHiveSwamer

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.