Package org.spout.vanilla.world.generator.normal.object

Examples of org.spout.vanilla.world.generator.normal.object.PondObject


    if (random.nextInt(waterOdd) == 0) {
      final int x = chunk.getBlockX(random);
      final int z = chunk.getBlockZ(random);
      final int y = random.nextInt(128);
      if (!LogicUtil.equalsAny(world.getBiome(x, y, z), VanillaBiomes.DESERT, VanillaBiomes.DESERT_HILLS)) {
        final PondObject pond = new PondObject(random, PondObject.PondType.WATER);
        if (pond.canPlaceObject(world, x, y, z)) {
          pond.placeObject(world, x, y, z);
        }
      }
    }
    if (random.nextInt(lavaOdd) == 0) {
      final int x = chunk.getBlockX(random);
      final int z = chunk.getBlockZ(random);
      final int y = random.nextInt(120) + 8;
      if (y >= 63 && random.nextInt(lavaSurfaceOdd) != 0) {
        return;
      }
      final PondObject pond = new PondObject(random, PondObject.PondType.LAVA);
      if (pond.canPlaceObject(world, x, y, z)) {
        pond.placeObject(world, x, y, z);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.world.generator.normal.object.PondObject

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.