Search in sources :

Example 1 with IChunkSet

use of com.fastasyncworldedit.core.queue.IChunkSet in project FastAsyncWorldEdit by IntellectualSites.

the class ChunkHolder method filterBlocks.

@Override
public synchronized void filterBlocks(Filter filter, ChunkFilterBlock block, @Nullable Region region, boolean full) {
    final IChunkGet get = getOrCreateGet();
    final IChunkSet set = getOrCreateSet();
    set.setFastMode(fastmode);
    try {
        block.filter(this, get, set, filter, region, full);
    } finally {
        filter.finishChunk(this);
    }
}
Also used : IChunkGet(com.fastasyncworldedit.core.queue.IChunkGet) IChunkSet(com.fastasyncworldedit.core.queue.IChunkSet)

Aggregations

IChunkGet (com.fastasyncworldedit.core.queue.IChunkGet)1 IChunkSet (com.fastasyncworldedit.core.queue.IChunkSet)1