Class SectionRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.chunk.SectionRenderDispatcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
(package private) static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SectionBufferBuilderPool
(package private) Vec3
(package private) boolean
private final CompileTaskDynamicQueue
private final ConsecutiveExecutor
private final TracingExecutor
(package private) final SectionBufferBuilderPack
(package private) ClientLevel
(package private) final Executor
(package private) final LevelRenderer
(package private) final SectionCompiler
(package private) final Queue
<SectionMesh> -
Constructor Summary
ConstructorsConstructorDescriptionSectionRenderDispatcher
(ClientLevel pLevel, LevelRenderer pRenderer, TracingExecutor pExecutor, RenderBuffers pBuffer, BlockRenderDispatcher pBlockRenderer, BlockEntityRenderDispatcher pBlockEntityRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dispose()
int
int
getStats()
int
boolean
void
rebuildSectionSync
(SectionRenderDispatcher.RenderSection pSection, RenderRegionCache pRegionCache) private void
runTask()
void
void
setCameraPosition
(Vec3 pCameraPosition) void
setLevel
(ClientLevel pLevel) void
-
Field Details
-
compileQueue
-
toUpload
-
mainThreadUploadExecutor
-
toClose
-
fixedBuffers
-
bufferPool
-
closed
volatile boolean closed -
consecutiveExecutor
-
executor
-
level
ClientLevel level -
renderer
-
cameraPosition
Vec3 cameraPosition -
sectionCompiler
-
-
Constructor Details
-
SectionRenderDispatcher
public SectionRenderDispatcher(ClientLevel pLevel, LevelRenderer pRenderer, TracingExecutor pExecutor, RenderBuffers pBuffer, BlockRenderDispatcher pBlockRenderer, BlockEntityRenderDispatcher pBlockEntityRenderer)
-
-
Method Details
-
setLevel
-
runTask
private void runTask() -
setCameraPosition
-
uploadAllPendingUploads
public void uploadAllPendingUploads() -
rebuildSectionSync
public void rebuildSectionSync(SectionRenderDispatcher.RenderSection pSection, RenderRegionCache pRegionCache) -
schedule
-
clearCompileQueue
public void clearCompileQueue() -
isQueueEmpty
public boolean isQueueEmpty() -
dispose
public void dispose() -
getStats
-
getCompileQueueSize
public int getCompileQueueSize() -
getToUpload
public int getToUpload() -
getFreeBufferCount
public int getFreeBufferCount()
-