Search in sources :

Example 1 with WorldCopyClipboard

use of com.fastasyncworldedit.core.extent.clipboard.WorldCopyClipboard in project FastAsyncWorldEdit by IntellectualSites.

the class EditSession method lazyCopy.

@Override
public Clipboard lazyCopy(Region region) {
    WorldCopyClipboard faweClipboard = new WorldCopyClipboard(() -> this, region);
    faweClipboard.setOrigin(region.getMinimumPoint());
    return faweClipboard;
}
Also used : WorldCopyClipboard(com.fastasyncworldedit.core.extent.clipboard.WorldCopyClipboard)

Example 2 with WorldCopyClipboard

use of com.fastasyncworldedit.core.extent.clipboard.WorldCopyClipboard in project FastAsyncWorldEdit by IntellectualSites.

the class Extent method lazyCopy.

/**
 * Lazily copy a region
 *
 * @param region
 * @return
 */
default Clipboard lazyCopy(Region region) {
    WorldCopyClipboard faweClipboard = new WorldCopyClipboard(() -> this, region);
    faweClipboard.setOrigin(region.getMinimumPoint());
    return faweClipboard;
}
Also used : WorldCopyClipboard(com.fastasyncworldedit.core.extent.clipboard.WorldCopyClipboard)

Example 3 with WorldCopyClipboard

use of com.fastasyncworldedit.core.extent.clipboard.WorldCopyClipboard in project FastAsyncWorldEdit by IntellectualSites.

the class ParallelQueueExtent method lazyCopy.

/**
 * Lazily copy a region
 */
@Override
public Clipboard lazyCopy(Region region) {
    Clipboard clipboard = new WorldCopyClipboard(() -> this, region);
    clipboard.setOrigin(region.getMinimumPoint());
    return clipboard;
}
Also used : WorldCopyClipboard(com.fastasyncworldedit.core.extent.clipboard.WorldCopyClipboard) Clipboard(com.sk89q.worldedit.extent.clipboard.Clipboard) WorldCopyClipboard(com.fastasyncworldedit.core.extent.clipboard.WorldCopyClipboard)

Aggregations

WorldCopyClipboard (com.fastasyncworldedit.core.extent.clipboard.WorldCopyClipboard)3 Clipboard (com.sk89q.worldedit.extent.clipboard.Clipboard)1