re-add lazyCopy to EditSession

This commit is contained in:
Jesse Boyd 2018-09-15 02:42:57 +10:00
parent 9023723a0e
commit 671c781a7c
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -32,6 +32,7 @@ import com.boydti.fawe.logging.rollback.RollbackOptimizedHistory;
import com.boydti.fawe.object.*;
import com.boydti.fawe.object.brush.visualization.VirtualWorld;
import com.boydti.fawe.object.changeset.*;
import com.boydti.fawe.object.clipboard.ReadOnlyClipboard;
import com.boydti.fawe.object.clipboard.WorldCopyClipboard;
import com.boydti.fawe.object.collection.LocalBlockVectorSet;
import com.boydti.fawe.object.exception.FaweException;
@ -363,6 +364,19 @@ public class EditSession extends AbstractDelegateExtent implements HasFaweQueue,
this(world, null, null, null, null, null, true, null, null, null, blockBag, eventBus, event);
}
/**
* Lazily copy a region
*
* @param region
* @return
*/
public BlockArrayClipboard lazyCopy(Region region) {
WorldCopyClipboard faweClipboard = new WorldCopyClipboard(this, region);
BlockArrayClipboard weClipboard = new BlockArrayClipboard(region, faweClipboard);
weClipboard.setOrigin(region.getMinimumPoint());
return weClipboard;
}
/**
* The limit for this specific edit (blocks etc)
*