Package com.sk89q.worldedit

Examples of com.sk89q.worldedit.CuboidClipboard.flip()


    blocks = new BaseBlock[facingCount][sizeX][sizeY][sizeZ];
   
    // copy the cubes for each direction
    copyCuboid(cuboid, 0); // normal one
    if (flipableX) {
      cuboid.flip(FlipDirection.WEST_EAST);
      copyCuboid(cuboid, 1);
     
      // z too? if so then make two more copies
      if (flipableZ) {
        cuboid.flip(FlipDirection.NORTH_SOUTH);
View Full Code Here


      cuboid.flip(FlipDirection.WEST_EAST);
      copyCuboid(cuboid, 1);
     
      // z too? if so then make two more copies
      if (flipableZ) {
        cuboid.flip(FlipDirection.NORTH_SOUTH);
        copyCuboid(cuboid, 3);
        cuboid.flip(FlipDirection.WEST_EAST);
        copyCuboid(cuboid, 2);
      }
   
View Full Code Here

     
      // z too? if so then make two more copies
      if (flipableZ) {
        cuboid.flip(FlipDirection.NORTH_SOUTH);
        copyCuboid(cuboid, 3);
        cuboid.flip(FlipDirection.WEST_EAST);
        copyCuboid(cuboid, 2);
      }
   
    // just z
    } else if (flipableZ) {
View Full Code Here

        copyCuboid(cuboid, 2);
      }
   
    // just z
    } else if (flipableZ) {
      cuboid.flip(FlipDirection.NORTH_SOUTH);
      copyCuboid(cuboid, 1);
    }
  }
 
  private void copyCuboid(CuboidClipboard cuboid, int facing) {
View Full Code Here

TOP
Copyright © 2015 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.