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
public static final int
NEARBY_SECTION_DISTANCE_IN_BLOCKS
field_1_5921
field_1_5921
private final ChunkRenderTaskScheduler
queue
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 final Consumer<ChunkBuilder$BuiltChunk>
onSectionMeshUpdate
field_1_5922
field_1_5922
private final AtomicReference<Vec3d>
cameraPosition
field_18766
cameraPosition
private volatile SectionBuilder
sectionCompiler
field_52171
sectionBuilder
private final StagingBuffer
stagingBuffer
field_1_3813
chunkStagingBuffer
private final Map<BlockRenderLayer, ChunkBuilder$GeometryBuffers>
chunkUberBuffers
field_1_1971
geometryByBlockRenderLayer
private final ReentrantLock
copyLock
field_1_1972
lock

Constructor summary

ModifierConstructor
public (NameableExecutor executor, BufferBuilderStorage bufferBuilderStorage, SectionBuilder sectionBuilder, Consumer<ChunkBuilder$BuiltChunk> onSectionMeshUpdate)

Method summary

Modifier and TypeMethod
public void
setCompiler(SectionCompiler sectionCompiler)
method_22752(class_9810 arg0)
setWorld(SectionBuilder sectionBuilder)
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
uploadTerrainBuffersToGpu()
method_1_2405()
uploadGlobalBuffers()
private void
schedule(SectionRenderDispatcher$RenderSection$SectionTask 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 ChunkBuilder$GeometryBuffers
lambda$new$0(ChunkSectionLayer arg0)
method_1_4615(class_11515 arg0)
method_1_4615(BlockRenderLayer blockRenderLayer)