net.minecraft.client.render.chunk

public class ChunkBuilder

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
field_53957
scheduler
private final BlockBufferAllocatorStorage
fixedBuffers
field_20828
buffers
private final BlockBufferBuilderPool
bufferPool
field_46907
buffersPool
private volatile boolean
closed
field_46908
stopped
private final NameableExecutor
executor
field_20830
executor
private ClientWorld
level
field_20831
world
private final WorldRenderer
renderer
field_20832
worldRenderer
private final AtomicReference<Vec3d>
cameraPosition
field_18766
cameraPosition
private SectionBuilder
sectionCompiler
field_52171
sectionBuilder
private final Map<BlockRenderLayer, ChunkBuilder$GeometryBuffers>
chunkUberBuffers
field_1_1971
geometryByBlockRenderLayer
private final ReentrantLock
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)
method_22752(class_638 arg0, class_9810 arg1)
setWorld(ClientWorld world, SectionBuilder arg1)
private void
runTask()
method_22763()
scheduleRunTasks()
public void
setCameraPosition(Vec3 cameraPosition)
method_19419(class_243 arg0)
setCameraPosition(Vec3d cameraPosition)
public ChunkBuilder$OffsetGeometryBuffers
getRenderSectionSlice(SectionMesh sectionMesh, ChunkSectionLayer layer)
method_1_2401(class_11517 arg0, class_11515 arg1)
getOffsetGeometryBuffers(AbstractChunkRenderData renderData, BlockRenderLayer blockRenderLayer)
public void
lock()
method_1_2403()
lock()
public void
unlock()
method_1_2404()
unlock()
public void
uploadGlobalGeomBuffersToGPU()
method_1_2405()
uploadGlobalBuffers()
public void
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)
method_22756(class_846$class_851$class_4577 arg0)
send(ChunkBuilder$BuiltChunk$Task task)
public void
clearCompileQueue()
method_72045()
cancelAllTasks()
public boolean
isQueueEmpty()
method_3630()
isEmpty()
public void
dispose()
method_3619()
stop()
public String
getStats()
method_3622()
getDebugString()
public int
getCompileQueueSize()
method_72046()
getScheduledTaskCount()
public int
getFreeBufferCount()
method_34847()
getFreeBufferCount()
private static ChunkBuilder$GeometryBuffers
lambda$new$0(GpuDevice arg0, GraphicsWorkarounds arg1, ChunkSectionLayer arg2)
method_1_2402(GpuDevice arg0, class_11541 arg1, class_11515 arg2)
method_1_2402(GpuDevice arg0, GpuDeviceInfo arg1, BlockRenderLayer blockRenderLayer)