Package com.sk89q.worldedit.bukkit

Examples of com.sk89q.worldedit.bukkit.BukkitWorld


    public static LocalWorld getLocalWorld(World w) {

        LocalWorld lw = wlw.get(w.getName());
        if (lw == null) {
            lw = new BukkitWorld(w);
            wlw.put(w.getName(), lw);
        }
        return lw;
    }
View Full Code Here


    @Override
    public void paste() {

        try {
            EditSession editSession = new EditSession(new BukkitWorld(world), -1);
            editSession.enableQueue();
            clipboard.place(editSession, origin, false);
            editSession.flushQueue();
        } catch (MaxChangedBlocksException e) {
            // is never thrown because we are on infinite mode
View Full Code Here

    public void clear() {

        try {
            CuboidRegion region = new CuboidRegion(origin, origin.add(size.getX() - 1, size.getY() - 1,
                    size.getZ() - 1));
            EditSession editSession = new EditSession(new BukkitWorld(world), -1);
            editSession.enableQueue();
            editSession.setBlocks(region, new BaseBlock(0));
            editSession.flushQueue();
        } catch (MaxChangedBlocksException e) {
            // is never thrown
View Full Code Here

    }

    @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

TOP

Related Classes of com.sk89q.worldedit.bukkit.BukkitWorld

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.