Class SectionRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.chunk.SectionRenderDispatcher
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classclass(package private) static enum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final SectionBufferBuilderPoolprivate Vec3private booleanprivate final Executor(package private) final SectionBufferBuilderPackprivate int(package private) ClientLevelprivate final ProcessorMailbox<Runnable>private static final int(package private) final LevelRendererprivate intprivate final Queue<SectionRenderDispatcher.RenderSection.CompileTask>
- 
Constructor SummaryConstructorsConstructorDescriptionSectionRenderDispatcher(ClientLevel p_295274_, LevelRenderer p_295323_, Executor p_295234_, RenderBuffers p_307511_) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidprivate voidvoiddispose()intgetStats()intintbooleanpollTask()voidrebuildSectionSync(SectionRenderDispatcher.RenderSection p_296309_, RenderRegionCache p_294139_) private voidrunTask()voidvoidvoidsetLevel(ClientLevel p_295112_) voiduploadSectionLayer(BufferBuilder.RenderedBuffer p_295447_, VertexBuffer p_294163_) 
- 
Field Details- 
MAX_HIGH_PRIORITY_QUOTAprivate static final int MAX_HIGH_PRIORITY_QUOTA- See Also:
 
- 
toBatchHighPriorityprivate final PriorityBlockingQueue<SectionRenderDispatcher.RenderSection.CompileTask> toBatchHighPriority
- 
toBatchLowPriority
- 
highPriorityQuotaprivate int highPriorityQuota
- 
toUpload
- 
fixedBuffers
- 
bufferPool
- 
toBatchCountprivate volatile int toBatchCount
- 
closedprivate volatile boolean closed
- 
mailbox
- 
executor
- 
levelClientLevel level
- 
renderer
- 
camera
 
- 
- 
Constructor Details- 
SectionRenderDispatcherpublic SectionRenderDispatcher(ClientLevel p_295274_, LevelRenderer p_295323_, Executor p_295234_, RenderBuffers p_307511_) 
 
- 
- 
Method Details- 
setLevel
- 
runTaskprivate void runTask()
- 
pollTask
- 
getStats
- 
getToBatchCountpublic int getToBatchCount()
- 
getToUploadpublic int getToUpload()
- 
getFreeBufferCountpublic int getFreeBufferCount()
- 
setCamera
- 
getCameraPosition
- 
uploadAllPendingUploadspublic void uploadAllPendingUploads()
- 
rebuildSectionSyncpublic void rebuildSectionSync(SectionRenderDispatcher.RenderSection p_296309_, RenderRegionCache p_294139_) 
- 
blockUntilClearpublic void blockUntilClear()
- 
schedule
- 
uploadSectionLayerpublic CompletableFuture<Void> uploadSectionLayer(BufferBuilder.RenderedBuffer p_295447_, VertexBuffer p_294163_) 
- 
clearBatchQueueprivate void clearBatchQueue()
- 
isQueueEmptypublic boolean isQueueEmpty()
- 
disposepublic void dispose()
 
-