Examples of toggleIgnoreAir()


Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.toggleIgnoreAir()

    final SimpleBlockMaterialPicker picker = new SimpleBlockMaterialPicker();
    box.setPicker(picker);
    // basic room
    picker.setOuterInnerMaterials(VanillaMaterials.DIRT, VanillaMaterials.AIR);
    box.setMinMax(xStart, -1, 0, xEnd, height - 1, depth).toggleIgnoreAir().fill();
    box.toggleIgnoreAir();
    picker.setOuterMaterial(VanillaMaterials.AIR);
    box.setMinMax(xStart, 0, 0, xEnd, 2, depth).fill();
    // some 'decoration'
    box.setMinMax(xStart, 3, 0, xEnd, height - 1, depth).sphericalFill();
  }
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.toggleIgnoreAir()

    // Building objects
    final PieceCuboidBuilder box = new PieceCuboidBuilder(this);
    // General shape
    box.setPicker(new StrongholdBlockMaterialPicker(getRandom()));
    box.setMinMax(0, 0, 0, 4, 4, 4).toggleIgnoreAir().fill();
    box.toggleIgnoreAir();
    // Place the door
    StrongholdDoor.getRandomDoor(this, getRandom()).place(1, 1, 0);
    // Place the access way depending on the direction
    box.setPicker(new SimpleBlockMaterialPicker());
    if (left) {
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.toggleIgnoreAir()

  public void place() {
    // General shape
    final PieceCuboidBuilder box = new PieceCuboidBuilder(this);
    box.setPicker(new StrongholdBlockMaterialPicker(getRandom()));
    box.setMinMax(0, -6, 0, 4, 4, 7).toggleIgnoreAir().fill();
    box.toggleIgnoreAir();
    // Place the doors
    StrongholdDoor.getRandomDoor(this, getRandom()).place(1, 1, 0);
    new EmptyDoorway(this).place(1, -5, 7);
    // Place the steps
    for (int i = 0; i < 6; i++) {
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.toggleIgnoreAir()

  public void place() {
    // General shape
    final PieceCuboidBuilder box = new PieceCuboidBuilder(this);
    box.setPicker(new StrongholdBlockMaterialPicker(getRandom()));
    box.setMinMax(-3, 0, 0, 7, 6, 10).toggleIgnoreAir().fill();
    box.toggleIgnoreAir();
    // Place the door
    StrongholdDoor.getRandomDoor(this, getRandom()).place(1, 1, 0);
    // More access ways
    box.setPicker(new SimpleBlockMaterialPicker());
    box.setMinMax(1, 1, 10, 3, 3, 10).fill();
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.toggleIgnoreAir()

  public void place() {
    // General shape
    final PieceCuboidBuilder box = new PieceCuboidBuilder(this);
    box.setPicker(new StrongholdBlockMaterialPicker(getRandom()));
    box.setMinMax(0, -6, 0, 4, 4, 4).toggleIgnoreAir().fill();
    box.toggleIgnoreAir();
    // Place the doors
    StrongholdDoor.getRandomDoor(this, getRandom()).place(1, 1, 0);
    new EmptyDoorway(this).place(1, -5, 4);
    // Place the steps
    setBlockMaterial(2, 0, 1, VanillaMaterials.STONE_BRICK);
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.toggleIgnoreAir()

    final SimpleBlockMaterialPicker picker = new SimpleBlockMaterialPicker();
    final StrongholdBlockMaterialPicker stone = new StrongholdBlockMaterialPicker(getRandom());
    // General shape
    box.setPicker(stone);
    box.setMinMax(-3, -2, 0, 6, 6, 10).toggleIgnoreAir().fill();
    box.toggleIgnoreAir();
    // Place the door
    StrongholdDoor.getRandomDoor(this, getRandom()).place(1, 1, 0);
    // Access to the next components of the intersection
    box.setPicker(picker);
    if (nextComponentRightLow) {
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.toggleIgnoreAir()

    final SimpleBlockMaterialPicker picker = new SimpleBlockMaterialPicker();
    final StrongholdBlockMaterialPicker stone = new StrongholdBlockMaterialPicker(getRandom());
    // General shape
    box.setPicker(stone);
    box.setMinMax(0, 0, 0, 8, 4, 10).toggleIgnoreAir().fill();
    box.toggleIgnoreAir();
    // Place the door
    StrongholdDoor.getRandomDoor(this, getRandom()).place(1, 1, 0);
    // Make some room
    box.setPicker(picker);
    box.setMinMax(1, 1, 10, 3, 3, 10).fill();
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.toggleIgnoreAir()

  public void place() {
    // General shape
    final PieceCuboidBuilder box = new PieceCuboidBuilder(this);
    box.setPicker(new StrongholdBlockMaterialPicker(getRandom()));
    box.setMinMax(0, 0, 0, 4, 4, 6).toggleIgnoreAir().fill();
    box.toggleIgnoreAir();
    // Place the doors
    StrongholdDoor.getRandomDoor(this, getRandom()).place(1, 1, 0);
    new EmptyDoorway(this).place(1, 1, 6);
    // Place random torches
    attachMaterial(0.1f, 1, 2, 1, VanillaMaterials.TORCH);
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.toggleIgnoreAir()

  public void place() {
    // General shape
    final PieceCuboidBuilder box = new PieceCuboidBuilder(this);
    box.setPicker(new StrongholdBlockMaterialPicker(getRandom()));
    box.setMinMax(-3, 0, 0, 10, height - 1, 14).toggleIgnoreAir().fill();
    box.toggleIgnoreAir();
    // Place the door
    StrongholdDoor.getRandomDoor(this, getRandom()).place(1, 1, 0);
    // Place some random spider webs
    final SimpleBlockMaterialPicker picker = new SimpleBlockMaterialPicker(VanillaMaterials.WEB, VanillaMaterials.WEB);
    box.setPicker(picker);
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.toggleIgnoreAir()

    // Building objects
    final PieceCuboidBuilder box = new PieceCuboidBuilder(this);
    // General shape
    box.setPicker(new StrongholdBlockMaterialPicker(getRandom()));
    box.setMinMax(0, 0, 0, 4, 4, 6).toggleIgnoreAir().fill();
    box.toggleIgnoreAir();
    // Place the doors
    StrongholdDoor.getRandomDoor(this, getRandom()).place(1, 1, 0);
    new EmptyDoorway(this).place(1, 1, 6);
    // Place the floor
    box.setPicker(new SimpleBlockMaterialPicker(VanillaMaterials.STONE_BRICK, VanillaMaterials.STONE_BRICK));
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.