Class BatchProcessorHolder
java.lang.Object
com.fastasyncworldedit.core.extent.processor.BatchProcessorHolder
- All Implemented Interfaces:
IBatchProcessorHolder
,IBatchProcessor
- Direct Known Subclasses:
ExtentBatchProcessorHolder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
getScope()
Default to CUSTOM ProcessorScope as we want custom processors people add to be before we write history, but after FAWE does it's own stuff.void
postProcess
(IChunk chunk, IChunkGet get, IChunkSet set) Post-process a chunk that has been edited.Future<?>
postProcessSet
(IChunk chunk, IChunkGet get, IChunkSet set) Post-process a chunk that has been edited.processSet
(IChunk chunk, IChunkGet get, IChunkSet set) Process a chunk that has been set.void
void
Set the held processortoString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.fastasyncworldedit.core.queue.IBatchProcessor
trimNBT, trimY
Methods inherited from interface com.fastasyncworldedit.core.extent.processor.IBatchProcessorHolder
construct, join, joinPost, processGet, remove
-
Constructor Details
-
BatchProcessorHolder
public BatchProcessorHolder()
-
-
Method Details
-
getProcessor
- Specified by:
getProcessor
in interfaceIBatchProcessorHolder
-
getPostProcessor
- Specified by:
getPostProcessor
in interfaceIBatchProcessorHolder
-
processSet
Description copied from interface:IBatchProcessor
Process a chunk that has been set.- Specified by:
processSet
in interfaceIBatchProcessor
- Specified by:
processSet
in interfaceIBatchProcessorHolder
-
postProcessSet
Description copied from interface:IBatchProcessor
Post-process a chunk that has been edited. Set should NOT be modified here, changes will NOT be flushed to the world, but MAY be flushed to history. Defaults to nothing as most Processors will not use it. Post-processors that are not technically blocking should override this method to allow post-processors to become blocking if required.- Specified by:
postProcessSet
in interfaceIBatchProcessor
- Specified by:
postProcessSet
in interfaceIBatchProcessorHolder
-
postProcess
Description copied from interface:IBatchProcessor
Post-process a chunk that has been edited. Set should NOT be modified here, changes will NOT be flushed to the world, but MAY be flushed to history. Defaults to nothing as most Processors will not use it. If the post-processor will run tasks asynchronously/not be blocking, useIBatchProcessor.postProcessSet(com.fastasyncworldedit.core.queue.IChunk, com.fastasyncworldedit.core.queue.IChunkGet, com.fastasyncworldedit.core.queue.IChunkSet)
to return a Future.- Specified by:
postProcess
in interfaceIBatchProcessor
- Specified by:
postProcess
in interfaceIBatchProcessorHolder
-
flush
public void flush()- Specified by:
flush
in interfaceIBatchProcessor
-
setProcessor
Description copied from interface:IBatchProcessorHolder
Set the held processor- Specified by:
setProcessor
in interfaceIBatchProcessorHolder
-
setPostProcessor
- Specified by:
setPostProcessor
in interfaceIBatchProcessorHolder
-
toString
-
getScope
Description copied from interface:IBatchProcessor
Default to CUSTOM ProcessorScope as we want custom processors people add to be before we write history, but after FAWE does it's own stuff.- Specified by:
getScope
in interfaceIBatchProcessor
-