public class ChainedChunkStatusListener extends java.lang.Object implements IChunkStatusListener
Modifier and Type | Field and Description |
---|---|
private IChunkStatusListener |
delegate |
private DelegatedTaskExecutor<java.lang.Runnable> |
executor |
Constructor and Description |
---|
ChainedChunkStatusListener(IChunkStatusListener p_i50696_1_,
java.util.concurrent.Executor p_i50696_2_) |
Modifier and Type | Method and Description |
---|---|
void |
start(ChunkPos center) |
void |
statusChanged(ChunkPos chunkPosition,
ChunkStatus newStatus) |
void |
stop() |
private final IChunkStatusListener delegate
private final DelegatedTaskExecutor<java.lang.Runnable> executor
public ChainedChunkStatusListener(IChunkStatusListener p_i50696_1_, java.util.concurrent.Executor p_i50696_2_)
public void start(ChunkPos center)
start
in interface IChunkStatusListener
public void statusChanged(ChunkPos chunkPosition, @Nullable ChunkStatus newStatus)
statusChanged
in interface IChunkStatusListener
public void stop()
stop
in interface IChunkStatusListener