mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-06-29 05:41:45 +00:00
38 lines
981 B
Java
38 lines
981 B
Java
|
package com.boydti.fawe.beta.implementation.processors;
|
||
|
|
||
|
import com.boydti.fawe.beta.IBatchProcessor;
|
||
|
import com.boydti.fawe.beta.IChunk;
|
||
|
import com.boydti.fawe.beta.IChunkGet;
|
||
|
import com.boydti.fawe.beta.IChunkSet;
|
||
|
import com.sk89q.worldedit.extent.Extent;
|
||
|
|
||
|
import org.jetbrains.annotations.NotNull;
|
||
|
import org.jetbrains.annotations.Nullable;
|
||
|
|
||
|
public final class EmptyBatchProcessor implements IBatchProcessor {
|
||
|
private static final EmptyBatchProcessor instance = new EmptyBatchProcessor();
|
||
|
|
||
|
public static EmptyBatchProcessor getInstance() {
|
||
|
return instance;
|
||
|
}
|
||
|
|
||
|
@NotNull
|
||
|
public Extent construct(@Nullable Extent child) {
|
||
|
return child;
|
||
|
}
|
||
|
|
||
|
@NotNull
|
||
|
public IChunkSet processSet(@Nullable IChunk chunk, @Nullable IChunkGet get, @Nullable IChunkSet set) {
|
||
|
return set;
|
||
|
}
|
||
|
|
||
|
@NotNull
|
||
|
public IBatchProcessor join(@Nullable IBatchProcessor other) {
|
||
|
return other;
|
||
|
}
|
||
|
|
||
|
private EmptyBatchProcessor() {
|
||
|
}
|
||
|
|
||
|
}
|