re-add lazyCopy to EditSession
This commit is contained in:
parent
9023723a0e
commit
671c781a7c
@ -32,6 +32,7 @@ import com.boydti.fawe.logging.rollback.RollbackOptimizedHistory;
|
|||||||
import com.boydti.fawe.object.*;
|
import com.boydti.fawe.object.*;
|
||||||
import com.boydti.fawe.object.brush.visualization.VirtualWorld;
|
import com.boydti.fawe.object.brush.visualization.VirtualWorld;
|
||||||
import com.boydti.fawe.object.changeset.*;
|
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.clipboard.WorldCopyClipboard;
|
||||||
import com.boydti.fawe.object.collection.LocalBlockVectorSet;
|
import com.boydti.fawe.object.collection.LocalBlockVectorSet;
|
||||||
import com.boydti.fawe.object.exception.FaweException;
|
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);
|
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)
|
* The limit for this specific edit (blocks etc)
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user