Package com.sk89q.worldedit

Examples of com.sk89q.worldedit.EditSession


    }

    @Override
    public void copy() {

        EditSession editSession = new EditSession(new BukkitWorld(world), -1);
        editSession.enableQueue();
        // -1 means no block limit
        clipboard.copy(editSession);
        editSession.flushQueue();
    }
View Full Code Here


            for (int z = 0; z < sizeZ; z++)
              blocks[facing][x][y][z] = cuboid.getBlock(new Vector(x, y, z));
  }
 
  private EditSession getEditSession(WorldGenerator generator) {
    return new EditSession(new BukkitWorld(generator.getWorld()), blockCount);
  }
View Full Code Here

 
  @Override
  public void paste(WorldGenerator generator, RealChunk chunk, BlockFace facing, int blockX, int blockY, int blockZ) {
    Vector at = new Vector(blockX, blockY, blockZ);
    try {
      EditSession editSession = getEditSession(generator);
      //editSession.setFastMode(true);
      place(editSession, getFacingIndex(facing), at, true);
    } catch (Exception e) {
      generator.reportException("[WorldEdit] Place schematic " + name + " at " + at + " failed", e);
    }
View Full Code Here

//    Vector min = new Vector(x1, y1, z1);
//    Vector max = new Vector(x2, y2, z2);
//    generator.reportMessage("Partial paste: origin = " + at + " min = " + min + " max = " + max);

    try {
      EditSession editSession = getEditSession(generator);
      //editSession.setFastMode(true);
      place(editSession, getFacingIndex(facing), at, true, x1, x2, y1, y2, z1, z2);
    } catch (Exception e) {
      generator.reportException("[WorldEdit] Partial place schematic " + name + " at " + at + " failed", e);
      generator.reportMessage("Info: " +
View Full Code Here

TOP

Related Classes of com.sk89q.worldedit.EditSession

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.