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 Queue<Runnable>
toUpload
field_4443
uploadQueue
private final Executor
mainThreadUploadExecutor
field_61028
uploadExecutor
private final Queue<AbstractChunkRenderData>
toClose
field_61029
renderQueue
private final BlockBufferAllocatorStorage
fixedBuffers
field_20828
buffers
private final BlockBufferBuilderPool
bufferPool
field_46907
buffersPool
private volatile boolean
closed
field_46908
stopped
private final SimpleConsecutiveExecutor
consecutiveExecutor
field_54167
consecutiveExecutor
private final NameableExecutor
executor
field_20830
executor
private ClientWorld
level
field_20831
world
private final WorldRenderer
renderer
field_20832
worldRenderer
private Vec3d
cameraPosition
field_18766
cameraPosition
private final SectionBuilder
sectionCompiler
field_52171
sectionBuilder

Constructor summary

ModifierConstructor
public (ClientWorld world, WorldRenderer worldRenderer, NameableExecutor executor, BufferBuilderStorage bufferBuilderStorage, BlockRenderManager blockRenderManager, BlockEntityRenderManager blockEntityRenderDispatcher)

Method summary

Modifier and TypeMethod
public void
setLevel(ClientLevel level)
method_22752(class_638 arg0)
setWorld(ClientWorld world)
private void
runTask()
method_22763()
scheduleRunTasks()
public void
setCameraPosition(Vec3 cameraPosition)
method_19419(class_243 arg0)
setCameraPosition(Vec3d cameraPosition)
public void
uploadAllPendingUploads()
method_22761()
upload()
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
getToUpload()
method_34846()
getChunksToUpload()
public int
getFreeBufferCount()
method_34847()
getFreeBufferCount()
private void
lambda$schedule$4(SectionRenderDispatcher$RenderSection$CompileTask arg0)
method_23086(class_846$class_851$class_4577 arg0)
method_23086(ChunkBuilder$BuiltChunk$Task arg0)
private void
lambda$runTask$3(SectionRenderDispatcher$RenderSection$CompileTask arg0, SectionBufferBuilderPack arg1, SectionRenderDispatcher$SectionTaskResult arg2, Throwable arg3)
method_22755(class_846$class_851$class_4577 arg0, class_750 arg1, class_846$class_4690 arg2, Throwable arg3)
method_22755(ChunkBuilder$BuiltChunk$Task arg0, BlockBufferAllocatorStorage arg1, ChunkBuilder$Result result, Throwable throwable)
private void
lambda$runTask$2(SectionRenderDispatcher$SectionTaskResult arg0, SectionBufferBuilderPack arg1)
method_23618(class_846$class_4690 arg0, class_750 arg1)
method_23618(ChunkBuilder$Result arg0, BlockBufferAllocatorStorage arg1)
private static CompletionStage
lambda$runTask$1(CompletableFuture arg0)
method_38555(CompletableFuture arg0)
method_38555(CompletableFuture future)
private static CompletableFuture
lambda$runTask$0(SectionRenderDispatcher$RenderSection$CompileTask arg0, SectionBufferBuilderPack arg1)
method_22757(class_846$class_851$class_4577 arg0, class_750 arg1)
method_22757(ChunkBuilder$BuiltChunk$Task arg0, BlockBufferAllocatorStorage arg1)