Package org.spout.vanilla.world.generator.normal.structure.mineshaft

Examples of org.spout.vanilla.world.generator.normal.structure.mineshaft.Mineshaft


        || Math.abs(blockZ % DISTANCE) >= Chunk.BLOCKS.SIZE) {
      return;
    }
    final World world = chunk.getWorld();
    if (random.nextInt(ODD) == 0) {
      final Mineshaft mineshaft = new Mineshaft(random);
      final int x = blockX + random.nextInt(VARIATION * 2 + 1) - VARIATION;
      final int y = random.nextInt(RAND_Y) + BASE_Y;
      final int z = blockZ + random.nextInt(VARIATION * 2 + 1) - VARIATION;
      if (mineshaft.canPlaceObject(world, x, y, z)) {
        mineshaft.placeObject(world, x, y, z);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.world.generator.normal.structure.mineshaft.Mineshaft

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.