Class MultiBatchProcessor
java.lang.Object
com.fastasyncworldedit.core.extent.processor.MultiBatchProcessor
- All Implemented Interfaces:
IBatchProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBatchProcessor
(IBatchProcessor processor) Convert this processor into an Extent based processor instead of a queue batch based on.void
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.join
(IBatchProcessor other) Join two processors and return the result.joinPost
(IBatchProcessor other) static IBatchProcessor
of
(IBatchProcessor... processors) 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.boolean
processGet
(int chunkX, int chunkZ) processSet
(IChunk chunk, IChunkGet get, IChunkSet set) Process a chunk that has been set.<T extends IBatchProcessor>
IBatchProcessorReturn a new processor after removing all are instances of a specified class.void
removeBatchProcessor
(IBatchProcessor processor) void
setFaweExceptionArray
(boolean[] faweExceptionReasonsUsed) Sets the cached boolean array of lengthFaweException.Type.values().length
that determines if a thrownFaweException
of typeFaweException.Type
should be output to console, rethrown to attempt to be visible to the player, etc.toString()
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
-
Constructor Details
-
MultiBatchProcessor
-
-
Method Details
-
of
-
addBatchProcessor
-
getBatchProcessors
-
removeBatchProcessor
-
processSet
Description copied from interface:IBatchProcessor
Process a chunk that has been set.- Specified by:
processSet
in interfaceIBatchProcessor
-
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
-
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
-
processGet
public boolean processGet(int chunkX, int chunkZ) - Specified by:
processGet
in interfaceIBatchProcessor
-
construct
Description copied from interface:IBatchProcessor
Convert this processor into an Extent based processor instead of a queue batch based on.- Specified by:
construct
in interfaceIBatchProcessor
-
remove
Description copied from interface:IBatchProcessor
Return a new processor after removing all are instances of a specified class.- Specified by:
remove
in interfaceIBatchProcessor
-
join
Description copied from interface:IBatchProcessor
Join two processors and return the result.- Specified by:
join
in interfaceIBatchProcessor
-
joinPost
- Specified by:
joinPost
in interfaceIBatchProcessor
-
flush
public void flush()- Specified by:
flush
in interfaceIBatchProcessor
-
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
-
setFaweExceptionArray
public void setFaweExceptionArray(boolean[] faweExceptionReasonsUsed) Sets the cached boolean array of lengthFaweException.Type.values().length
that determines if a thrownFaweException
of typeFaweException.Type
should be output to console, rethrown to attempt to be visible to the player, etc. Allows the same array to be used as widely as possible across the edit to avoid spam to console.- Parameters:
faweExceptionReasonsUsed
- boolean array that should be cached where this method is called from of lengthFaweException.Type.values().length
-