public class ChunkRenderWorker
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private ChunkRenderDispatcher |
chunkRenderDispatcher |
private static org.apache.logging.log4j.Logger |
LOGGER |
private RegionRenderCacheBuilder |
regionRenderCacheBuilder |
private boolean |
shouldRun |
Constructor and Description |
---|
ChunkRenderWorker(ChunkRenderDispatcher chunkRenderDispatcherIn) |
ChunkRenderWorker(ChunkRenderDispatcher chunkRenderDispatcherIn,
RegionRenderCacheBuilder regionRenderCacheBuilderIn) |
Modifier and Type | Method and Description |
---|---|
private void |
freeRenderBuilder(ChunkCompileTaskGenerator taskGenerator) |
private RegionRenderCacheBuilder |
getRegionRenderCacheBuilder() |
private boolean |
isChunkExisting(BlockPos pos,
World worldIn) |
void |
notifyToStop() |
protected void |
processTask(ChunkCompileTaskGenerator generator) |
void |
run() |
private static final org.apache.logging.log4j.Logger LOGGER
private final ChunkRenderDispatcher chunkRenderDispatcher
private final RegionRenderCacheBuilder regionRenderCacheBuilder
private boolean shouldRun
public ChunkRenderWorker(ChunkRenderDispatcher chunkRenderDispatcherIn)
public ChunkRenderWorker(ChunkRenderDispatcher chunkRenderDispatcherIn, @Nullable RegionRenderCacheBuilder regionRenderCacheBuilderIn)
public void run()
run
in interface java.lang.Runnable
protected void processTask(ChunkCompileTaskGenerator generator) throws java.lang.InterruptedException
java.lang.InterruptedException
private RegionRenderCacheBuilder getRegionRenderCacheBuilder() throws java.lang.InterruptedException
java.lang.InterruptedException
private void freeRenderBuilder(ChunkCompileTaskGenerator taskGenerator)
public void notifyToStop()