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

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


    box.offsetMinMax(-7, 0, 10, -7, 0, 10).fill();
    box.offsetMinMax(7, 0, 0, 7, 0, 0).fill();
    box.setMinMax(4, 9, 4, 4, 9, 4).fill();
    box.offsetMinMax(3, 0, 0, 3, 0, 0).fill();
    box.offsetMinMax(-3, 0, 6, -3, 0, 6).fill();
    box.offsetMinMax(3, 0, 0, 3, 0, 0).fill();
    box.setMinMax(5, 9, 7, 6, 9, 7).fill();
    // Place ALL the stairs!
    setBlockMaterial(5, 9, 6, VanillaMaterials.STAIRS_COBBLESTONE, (short) 2);
    setBlockMaterial(6, 9, 6, VanillaMaterials.STAIRS_COBBLESTONE, (short) 2);
    setBlockMaterial(5, 9, 8, VanillaMaterials.STAIRS_COBBLESTONE, (short) 3);
View Full Code Here


    // hollow out some space
    picker.setOuterInnerMaterials(VanillaMaterials.AIR, VanillaMaterials.AIR);
    if (hasTwoFloors()) {
      // for the extra floor
      box.setMinMax(0, 0, 0, 2, 2, 4).fill();
      box.offsetMinMax(-1, 0, 1, 1, 0, -1).fill();
      box.setMinMax(0, height - 2, 0, 2, height, 4).fill();
      box.offsetMinMax(-1, 0, 1, 1, 0, -1).fill();
      box.setMinMax(0, 3, 1, 2, 3, 3).fill();
    } else {
      box.setMinMax(0, 0, 0, 2, height, 4).fill();
View Full Code Here

    setBlockMaterial(7, 3, 10, VanillaMaterials.STAIRS_COBBLESTONE, (short) 2);
    setBlockMaterial(4, 4, 5, VanillaMaterials.STAIRS_COBBLESTONE, (short) 0);
    setBlockMaterial(7, 4, 5, VanillaMaterials.STAIRS_COBBLESTONE, (short) 1);
    // Fill in some blocks for the stairs
    box.setMinMax(4, 1, 9, 4, 1, 9).fill();
    box.offsetMinMax(3, 0, 0, 3, 0, 0).fill();
    box.setMinMax(4, 1, 10, 7, 2, 10).fill();
    box.setMinMax(5, 4, 5, 6, 4, 5).fill();
    // Stair case to the basement
    box.setPicker(air);
    for (int i = 0; i < 4; i++) {
View Full Code Here

    if (hasTwoFloors()) {
      // for the extra floor
      box.setMinMax(0, 0, 0, 2, 2, 4).fill();
      box.offsetMinMax(-1, 0, 1, 1, 0, -1).fill();
      box.setMinMax(0, height - 2, 0, 2, height, 4).fill();
      box.offsetMinMax(-1, 0, 1, 1, 0, -1).fill();
      box.setMinMax(0, 3, 1, 2, 3, 3).fill();
    } else {
      box.setMinMax(0, 0, 0, 2, height, 4).fill();
      box.offsetMinMax(-1, 0, 1, 1, 0, -1).fill();
    }
View Full Code Here

      box.setMinMax(0, height - 2, 0, 2, height, 4).fill();
      box.offsetMinMax(-1, 0, 1, 1, 0, -1).fill();
      box.setMinMax(0, 3, 1, 2, 3, 3).fill();
    } else {
      box.setMinMax(0, 0, 0, 2, height, 4).fill();
      box.offsetMinMax(-1, 0, 1, 1, 0, -1).fill();
    }
    // wooden pillars
    picker.setOuterMaterial(VanillaMaterials.PLANK);
    box.setMinMax(0, 0, 1, 0, height, 1).fill();
    box.setMinMax(0, 0, 3, 0, height, 3).fill();
View Full Code Here

      setBlockMaterial(6, -i, 6 + i, VanillaMaterials.STAIRS_COBBLESTONE, (short) 3);
      box.setMinMax(5, -i, 7 + i, 6, -i, 9 + i).fill();
    }
    // Make some room in the basement
    box.setMinMax(1, -3, 12, 10, -1, 13).fill();
    box.offsetMinMax(0, 0, -11, -7, 0, 0).fill();
    box.offsetMinMax(0, 0, 0, 6, 0, -8).fill();
    // Decorate the ceiling of the basement
    box.setPicker(cobble);
    for (int i = 1; i <= 13; i += 2) {
      box.setMinMax(1, -3, i, 1, -2, i).fill();
View Full Code Here

      box.setMinMax(5, -i, 7 + i, 6, -i, 9 + i).fill();
    }
    // Make some room in the basement
    box.setMinMax(1, -3, 12, 10, -1, 13).fill();
    box.offsetMinMax(0, 0, -11, -7, 0, 0).fill();
    box.offsetMinMax(0, 0, 0, 6, 0, -8).fill();
    // Decorate the ceiling of the basement
    box.setPicker(cobble);
    for (int i = 1; i <= 13; i += 2) {
      box.setMinMax(1, -3, i, 1, -2, i).fill();
    }
View Full Code Here

    for (int i = 2; i <= 12; i += 2) {
      box.setMinMax(1, -1, i, 3, -1, i).fill();
    }
    // Decoration for the back wall of the basement
    box.setMinMax(2, -2, 1, 5, -2, 1).fill();
    box.offsetMinMax(5, 0, 0, 4, 0, 0).fill();
    box.offsetMinMax(-1, -1, 0, -3, -1, 0).fill();
    box.offsetMinMax(0, 2, 0, 0, 2, 0).fill();
    // Setup a tripwire and arrow dispenser trap
    setBlockMaterial(1, -3, 8, VanillaMaterials.TRIPWIRE_HOOK, (short) 7);
    setBlockMaterial(4, -3, 8, VanillaMaterials.TRIPWIRE_HOOK, (short) 5);
View Full Code Here

      box.setMinMax(1, -1, i, 3, -1, i).fill();
    }
    // Decoration for the back wall of the basement
    box.setMinMax(2, -2, 1, 5, -2, 1).fill();
    box.offsetMinMax(5, 0, 0, 4, 0, 0).fill();
    box.offsetMinMax(-1, -1, 0, -3, -1, 0).fill();
    box.offsetMinMax(0, 2, 0, 0, 2, 0).fill();
    // Setup a tripwire and arrow dispenser trap
    setBlockMaterial(1, -3, 8, VanillaMaterials.TRIPWIRE_HOOK, (short) 7);
    setBlockMaterial(4, -3, 8, VanillaMaterials.TRIPWIRE_HOOK, (short) 5);
    setBlockMaterial(2, -3, 8, VanillaMaterials.TRIPWIRE, (short) 4);
View Full Code Here

    }
    // Decoration for the back wall of the basement
    box.setMinMax(2, -2, 1, 5, -2, 1).fill();
    box.offsetMinMax(5, 0, 0, 4, 0, 0).fill();
    box.offsetMinMax(-1, -1, 0, -3, -1, 0).fill();
    box.offsetMinMax(0, 2, 0, 0, 2, 0).fill();
    // Setup a tripwire and arrow dispenser trap
    setBlockMaterial(1, -3, 8, VanillaMaterials.TRIPWIRE_HOOK, (short) 7);
    setBlockMaterial(4, -3, 8, VanillaMaterials.TRIPWIRE_HOOK, (short) 5);
    setBlockMaterial(2, -3, 8, VanillaMaterials.TRIPWIRE, (short) 4);
    setBlockMaterial(3, -3, 8, VanillaMaterials.TRIPWIRE, (short) 4);
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.