net.minecraft.client.render.chunk

public class ChunkBuilder

net.minecraft.client.renderer.chunk.SectionRenderDispatcher
net.minecraft.client.renderer.chunk.SectionRenderDispatcher
net.minecraft.class_846
net.minecraft.client.render.chunk.ChunkBuilder

Field summary

Modifier and TypeField
private final ChunkRenderTaskScheduler
compileQueue
compileQueue
field_53957
scheduler
private final BlockBufferAllocatorStorage
fixedBuffers
fixedBuffers
field_20828
buffers
private final BlockBufferBuilderPool
bufferPool
bufferPool
field_46907
buffersPool
private volatile boolean
closed
closed
field_46908
stopped
private final NameableExecutor
executor
executor
field_20830
executor
private ClientWorld
level
level
field_20831
world
private final WorldRenderer
renderer
renderer
field_20832
worldRenderer
private final AtomicReference<Vec3d>
cameraPosition
cameraPosition
field_18766
cameraPosition
private SectionBuilder
sectionCompiler
sectionCompiler
field_52171
sectionBuilder
private final Map<BlockRenderLayer, ChunkBuilder$GeometryBuffers>
chunkUberBuffers
chunkUberBuffers
field_1_1971
geometryByBlockRenderLayer
private final ReentrantLock
copyLock
copyLock
field_1_1972
lock

Constructor summary

ModifierConstructor
public (ClientWorld world, WorldRenderer worldRenderer, NameableExecutor executor, BufferBuilderStorage bufferBuilderStorage, SectionBuilder sectionCompiler)

Method summary

Modifier and TypeMethod
public void
setLevel(ClientLevel level, SectionCompiler sectionCompiler)
setLevel(ClientLevel level, SectionCompiler sectionCompiler)
method_22752(class_638 arg0, class_9810 arg1)
setWorld(ClientWorld world, SectionBuilder arg1)
private void
runTask()
runTask()
method_22763()
scheduleRunTasks()
public void
setCameraPosition(Vec3 cameraPosition)
setCameraPosition(Vec3 cameraPosition)
method_19419(class_243 arg0)
setCameraPosition(Vec3d cameraPosition)
public ChunkBuilder$OffsetGeometryBuffers
getRenderSectionSlice(SectionMesh sectionMesh, ChunkSectionLayer layer)
getRenderSectionSlice(SectionMesh sectionMesh, ChunkSectionLayer layer)
method_1_2401(class_11517 arg0, class_11515 arg1)
getOffsetGeometryBuffers(AbstractChunkRenderData renderData, BlockRenderLayer blockRenderLayer)
public void
lock()
lock()
method_1_2403()
lock()
public void
unlock()
unlock()
method_1_2404()
unlock()
public void
uploadGlobalGeomBuffersToGPU()
uploadGlobalGeomBuffersToGPU()
method_1_2405()
uploadGlobalBuffers()
public void
rebuildSectionSync(SectionRenderDispatcher$RenderSection section, RenderRegionCache cache)
rebuildSectionSync(SectionRenderDispatcher$RenderSection section, RenderRegionCache cache)
method_3627(class_846$class_851 arg0, class_6850 arg1)
rebuild(ChunkBuilder$BuiltChunk chunk, ChunkRendererRegionBuilder builder)
public void
schedule(SectionRenderDispatcher$RenderSection$CompileTask task)
schedule(SectionRenderDispatcher$RenderSection$CompileTask task)
method_22756(class_846$class_851$class_4577 arg0)
send(ChunkBuilder$BuiltChunk$Task task)
public void
clearCompileQueue()
clearCompileQueue()
method_72045()
cancelAllTasks()
public boolean
isQueueEmpty()
isQueueEmpty()
method_3630()
isEmpty()
public void
dispose()
dispose()
method_3619()
stop()
public String
getStats()
getStats()
method_3622()
getDebugString()
public int
getCompileQueueSize()
getCompileQueueSize()
method_72046()
getScheduledTaskCount()
public int
getFreeBufferCount()
getFreeBufferCount()
method_34847()
getFreeBufferCount()