public class ChunkRender extends java.lang.Object implements IForgeRenderChunk
Modifier and Type | Field and Description |
---|---|
AxisAlignedBB |
boundingBox |
CompiledChunk |
compiledChunk |
static int |
renderChunksUpdated |
Constructor and Description |
---|
ChunkRender(World worldIn,
WorldRenderer worldRendererIn) |
Modifier and Type | Method and Description |
---|---|
void |
clearNeedsUpdate() |
void |
deleteGlResources() |
protected void |
finishCompileTask() |
BlockPos |
getBlockPosOffset16(Direction facing) |
CompiledChunk |
getCompiledChunk() |
protected double |
getDistanceSq() |
java.util.concurrent.locks.ReentrantLock |
getLockCompileTask() |
BlockPos |
getPosition() |
VertexBuffer |
getVertexBufferByLayer(int layer) |
World |
getWorld() |
ChunkRenderTask |
makeCompileTaskChunk() |
ChunkRenderTask |
makeCompileTaskTransparency() |
boolean |
needsImmediateUpdate() |
boolean |
needsUpdate() |
void |
rebuildChunk(float x,
float y,
float z,
ChunkRenderTask generator) |
void |
resortTransparency(float x,
float y,
float z,
ChunkRenderTask generator) |
void |
setCompiledChunk(CompiledChunk compiledChunkIn) |
boolean |
setFrameIndex(int frameIndexIn) |
void |
setNeedsUpdate(boolean immediate) |
void |
setPosition(int x,
int y,
int z) |
boolean |
shouldStayLoaded() |
void |
stopCompileTask() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createRegionRenderCache
public static int renderChunksUpdated
public CompiledChunk compiledChunk
public AxisAlignedBB boundingBox
public ChunkRender(World worldIn, WorldRenderer worldRendererIn)
public boolean shouldStayLoaded()
public boolean setFrameIndex(int frameIndexIn)
public VertexBuffer getVertexBufferByLayer(int layer)
public void setPosition(int x, int y, int z)
public void resortTransparency(float x, float y, float z, ChunkRenderTask generator)
public void rebuildChunk(float x, float y, float z, ChunkRenderTask generator)
protected void finishCompileTask()
public java.util.concurrent.locks.ReentrantLock getLockCompileTask()
public ChunkRenderTask makeCompileTaskChunk()
@Nullable public ChunkRenderTask makeCompileTaskTransparency()
protected double getDistanceSq()
public CompiledChunk getCompiledChunk()
public void setCompiledChunk(CompiledChunk compiledChunkIn)
public void stopCompileTask()
public void deleteGlResources()
public BlockPos getPosition()
public void setNeedsUpdate(boolean immediate)
public void clearNeedsUpdate()
public boolean needsUpdate()
public boolean needsImmediateUpdate()
public World getWorld()