public class ChunkRenderDispatcher.ChunkRender extends java.lang.Object implements IForgeRenderChunk
Modifier and Type | Class and Description |
---|---|
(package private) class |
ChunkRenderDispatcher.ChunkRender.ChunkRenderTask |
(package private) class |
ChunkRenderDispatcher.ChunkRender.RebuildTask |
(package private) class |
ChunkRenderDispatcher.ChunkRender.SortTransparencyTask |
Modifier and Type | Field and Description |
---|---|
AxisAlignedBB |
boundingBox |
java.util.concurrent.atomic.AtomicReference<ChunkRenderDispatcher.CompiledChunk> |
compiledChunk |
private int |
frameIndex |
private java.util.Set<TileEntity> |
globalTileEntities |
private ChunkRenderDispatcher.ChunkRender.RebuildTask |
lastRebuildTask |
private ChunkRenderDispatcher.ChunkRender.SortTransparencyTask |
lastResortTransparencyTask |
private BlockPos.Mutable[] |
mapEnumFacing |
private boolean |
needsImmediateUpdate |
private boolean |
needsUpdate |
private BlockPos.Mutable |
position |
private java.util.Map<RenderType,VertexBuffer> |
vertexBuffers |
Constructor and Description |
---|
ChunkRender() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createRegionRenderCache
public final java.util.concurrent.atomic.AtomicReference<ChunkRenderDispatcher.CompiledChunk> compiledChunk
@Nullable private ChunkRenderDispatcher.ChunkRender.RebuildTask lastRebuildTask
@Nullable private ChunkRenderDispatcher.ChunkRender.SortTransparencyTask lastResortTransparencyTask
private final java.util.Set<TileEntity> globalTileEntities
private final java.util.Map<RenderType,VertexBuffer> vertexBuffers
public AxisAlignedBB boundingBox
private int frameIndex
private boolean needsUpdate
private final BlockPos.Mutable position
private final BlockPos.Mutable[] mapEnumFacing
private boolean needsImmediateUpdate
private boolean isChunkLoaded(BlockPos blockPosIn)
public boolean shouldStayLoaded()
public boolean setFrameIndex(int frameIndexIn)
public VertexBuffer getVertexBuffer(RenderType renderTypeIn)
public void setPosition(int x, int y, int z)
protected double getDistanceSq()
private void beginLayer(BufferBuilder bufferBuilderIn)
public ChunkRenderDispatcher.CompiledChunk getCompiledChunk()
private void stopCompileTask()
public void deleteGlResources()
public BlockPos getPosition()
public void setNeedsUpdate(boolean immediate)
public void clearNeedsUpdate()
public boolean needsUpdate()
public boolean needsImmediateUpdate()
public boolean resortTransparency(RenderType renderTypeIn, ChunkRenderDispatcher renderDispatcherIn)
protected void stopTasks()
public ChunkRenderDispatcher.ChunkRender.ChunkRenderTask makeCompileTaskChunk()
public void rebuildChunkLater(ChunkRenderDispatcher dispatcherIn)
private void updateGlobalTileEntities(java.util.Set<TileEntity> globalEntitiesIn)
public void rebuildChunk()