public class ChunkCompileTaskGenerator extends java.lang.Object implements java.lang.Comparable<ChunkCompileTaskGenerator>
Modifier and Type | Class and Description |
---|---|
static class |
ChunkCompileTaskGenerator.Status |
static class |
ChunkCompileTaskGenerator.Type |
Modifier and Type | Field and Description |
---|---|
private CompiledChunk |
compiledChunk |
private double |
distanceSq |
private boolean |
finished |
private java.util.List<java.lang.Runnable> |
listFinishRunnables |
private java.util.concurrent.locks.ReentrantLock |
lock |
private RegionRenderCacheBuilder |
regionRenderCacheBuilder |
private RenderChunk |
renderChunk |
private ChunkCompileTaskGenerator.Status |
status |
private ChunkCompileTaskGenerator.Type |
type |
Constructor and Description |
---|
ChunkCompileTaskGenerator(RenderChunk renderChunkIn,
ChunkCompileTaskGenerator.Type typeIn,
double distanceSqIn) |
Modifier and Type | Method and Description |
---|---|
void |
addFinishRunnable(java.lang.Runnable runnable) |
int |
compareTo(ChunkCompileTaskGenerator p_compareTo_1_) |
void |
finish() |
CompiledChunk |
getCompiledChunk() |
double |
getDistanceSq() |
java.util.concurrent.locks.ReentrantLock |
getLock() |
RegionRenderCacheBuilder |
getRegionRenderCacheBuilder() |
RenderChunk |
getRenderChunk() |
ChunkCompileTaskGenerator.Status |
getStatus() |
ChunkCompileTaskGenerator.Type |
getType() |
boolean |
isFinished() |
void |
setCompiledChunk(CompiledChunk compiledChunkIn) |
void |
setRegionRenderCacheBuilder(RegionRenderCacheBuilder regionRenderCacheBuilderIn) |
void |
setStatus(ChunkCompileTaskGenerator.Status statusIn) |
private final RenderChunk renderChunk
private final java.util.concurrent.locks.ReentrantLock lock
private final java.util.List<java.lang.Runnable> listFinishRunnables
private final ChunkCompileTaskGenerator.Type type
private final double distanceSq
private RegionRenderCacheBuilder regionRenderCacheBuilder
private CompiledChunk compiledChunk
private ChunkCompileTaskGenerator.Status status
private boolean finished
public ChunkCompileTaskGenerator(RenderChunk renderChunkIn, ChunkCompileTaskGenerator.Type typeIn, double distanceSqIn)
public ChunkCompileTaskGenerator.Status getStatus()
public RenderChunk getRenderChunk()
public CompiledChunk getCompiledChunk()
public void setCompiledChunk(CompiledChunk compiledChunkIn)
public RegionRenderCacheBuilder getRegionRenderCacheBuilder()
public void setRegionRenderCacheBuilder(RegionRenderCacheBuilder regionRenderCacheBuilderIn)
public void setStatus(ChunkCompileTaskGenerator.Status statusIn)
public void finish()
public void addFinishRunnable(java.lang.Runnable runnable)
public java.util.concurrent.locks.ReentrantLock getLock()
public ChunkCompileTaskGenerator.Type getType()
public boolean isFinished()
public int compareTo(ChunkCompileTaskGenerator p_compareTo_1_)
compareTo
in interface java.lang.Comparable<ChunkCompileTaskGenerator>
public double getDistanceSq()