mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-16 03:14:04 +00:00
commanding-pipeline diff
This commit is contained in:
@@ -19,6 +19,9 @@
|
||||
|
||||
package com.sk89q.worldedit.extent;
|
||||
|
||||
import com.boydti.fawe.beta.IBatchProcessor;
|
||||
import com.boydti.fawe.object.HistoryExtent;
|
||||
import com.boydti.fawe.object.changeset.FaweChangeSet;
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
import com.boydti.fawe.object.clipboard.WorldCopyClipboard;
|
||||
@@ -629,4 +632,21 @@ public interface Extent extends InputExtent, OutputExtent {
|
||||
return count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Have an extent processed
|
||||
* - Either block (Extent) processing or chunk processing
|
||||
* @param processor
|
||||
* @return processed Extent
|
||||
*/
|
||||
default Extent addProcessor(IBatchProcessor processor) {
|
||||
return processor.construct(this);
|
||||
}
|
||||
|
||||
default Extent enableHistory(FaweChangeSet changeSet) {
|
||||
return addProcessor(changeSet);
|
||||
}
|
||||
|
||||
default Extent disableHistory() {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user