Search in sources :

Example 1 with EmptyBatchProcessor

use of com.fastasyncworldedit.core.extent.processor.EmptyBatchProcessor in project FastAsyncWorldEdit by IntellectualSites.

the class ChunkHolder method call.

@Override
public synchronized T call(IChunkSet set, Runnable finalize) {
    if (set != null) {
        IChunkGet get = getOrCreateGet();
        boolean postProcess = !(getExtent().getPostProcessor() instanceof EmptyBatchProcessor);
        get.setCreateCopy(postProcess);
        set = getExtent().processSet(this, get, set);
        try {
            return get.call(set, finalize);
        } finally {
            if (postProcess) {
                getExtent().postProcess(this, get.getCopy(), set);
            }
        }
    }
    return null;
}
Also used : IChunkGet(com.fastasyncworldedit.core.queue.IChunkGet) EmptyBatchProcessor(com.fastasyncworldedit.core.extent.processor.EmptyBatchProcessor)

Aggregations

EmptyBatchProcessor (com.fastasyncworldedit.core.extent.processor.EmptyBatchProcessor)1 IChunkGet (com.fastasyncworldedit.core.queue.IChunkGet)1