public class RenderChunk
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
AxisAlignedBB |
boundingBox |
CompiledChunk |
compiledChunk |
static int |
renderChunksUpdated |
Constructor and Description |
---|
RenderChunk(World worldIn,
RenderGlobal renderGlobalIn,
BlockPos blockPosIn,
int indexIn) |
public static int renderChunksUpdated
public CompiledChunk compiledChunk
public AxisAlignedBB boundingBox
public RenderChunk(World worldIn, RenderGlobal renderGlobalIn, BlockPos blockPosIn, int indexIn)
public boolean setFrameIndex(int frameIndexIn)
public VertexBuffer getVertexBufferByLayer(int layer)
public void setPosition(BlockPos pos)
public void resortTransparency(float x, float y, float z, ChunkCompileTaskGenerator generator)
public void rebuildChunk(float x, float y, float z, ChunkCompileTaskGenerator generator)
protected void finishCompileTask()
public java.util.concurrent.locks.ReentrantLock getLockCompileTask()
public ChunkCompileTaskGenerator makeCompileTaskChunk()
public ChunkCompileTaskGenerator makeCompileTaskTransparency()
public void multModelviewMatrix()
public CompiledChunk getCompiledChunk()
public void setCompiledChunk(CompiledChunk compiledChunkIn)
public void stopCompileTask()
public void deleteGlResources()
public BlockPos getPosition()
public void setNeedsUpdate(boolean needsUpdateIn)
public boolean isNeedsUpdate()
protected RegionRenderCache createRegionRenderCache(World world, BlockPos from, BlockPos to, int subtract)
world
- The world to cache.from
- The starting position of the chunk minus one on each axis.to
- The ending position of the chunk plus one on each axis.subtract
- Padding used internally by the RegionRenderCache constructor to make
the cache a 20x20x20 cube, for a total of 8000 states in the cache.RegionRenderCache
public BlockPos getBlockPosOffset16(EnumFacing p_181701_1_)