1CuboidRegion region = new CuboidRegion(world, min, max);
2BlockArrayClipboard clipboard = new BlockArrayClipboard(region);
3
4EditSession editSession = WorldEdit.getInstance().getEditSessionFactory().getEditSession(region.getWorld(), -1);
5
6ForwardExtentCopy forwardExtentCopy = new ForwardExtentCopy(editSession, region, clipboard, region.getMinimumPoint());
7forwardExtentCopy.setCopyingEntities(true);
8Operations.complete(forwardExtentCopy);