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

Examples of org.spout.vanilla.world.generator.normal.object.PondObject.placeObject()


      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);
View Full Code Here


      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);
      }
    }
  }

  public void setWaterOdd(int waterOdd) {
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.