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

Examples of org.spout.vanilla.world.generator.structure.PiecePlaneBuilder


  @Override
  public void place() {
    // Building objects
    final PieceCuboidBuilder box = new PieceCuboidBuilder(this);
    final PiecePlaneBuilder plane = new PiecePlaneBuilder(this);
    final PieceLayoutBuilder painter = new PieceLayoutBuilder(this);
    final SimpleBlockMaterialPicker picker = new SimpleBlockMaterialPicker();
    box.setPicker(picker);
    plane.setPicker(picker);
    // Foundations
    picker.setOuterInnerMaterials(VanillaMaterials.SANDSTONE, VanillaMaterials.SANDSTONE);
    box.setMinMax(0, -4, 0, 20, 0, 20).fill();
    // Pyramid
    picker.setOuterInnerMaterials(VanillaMaterials.SANDSTONE, VanillaMaterials.AIR);
    plane.setMinMax(0, 0, 0, 20, 0, 20);
    for (byte yy = 1; yy < 10; yy++) {
      plane.offsetMinMax(1, 1, 1, -1, 1, -1);
      plane.fill();
    }
    // Fill the land under
    for (byte xx = 0; xx < 21; xx++) {
      for (byte zz = 0; zz < 21; zz++) {
        fillDownwards(xx, -5, zz, 50, VanillaMaterials.SANDSTONE);
View Full Code Here

TOP

Related Classes of org.spout.vanilla.world.generator.structure.PiecePlaneBuilder

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.