Class SectionRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.chunk.SectionRenderDispatcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
class
static final class
(package private) static enum
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SectionBufferBuilderPool
private Vec3
(package private) boolean
private final CompileTaskDynamicQueue
private final ConsecutiveExecutor
private final TracingExecutor
(package private) final SectionBufferBuilderPack
(package private) ClientLevel
(package private) final LevelRenderer
(package private) final SectionCompiler
private int
-
Constructor Summary
ConstructorsConstructorDescriptionSectionRenderDispatcher
(ClientLevel pLevel, LevelRenderer pRenderer, TracingExecutor pExecutor, RenderBuffers pBuffer, BlockRenderDispatcher pBlockRenderer, BlockEntityRenderDispatcher pBlockEntityRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
void
dispose()
int
getStats()
int
int
boolean
void
rebuildSectionSync
(SectionRenderDispatcher.RenderSection pSection, RenderRegionCache pRegionCache) private void
runTask()
void
void
void
setLevel
(ClientLevel pLevel) void
-
Field Details
-
compileQueue
-
toUpload
-
fixedBuffers
-
bufferPool
-
toBatchCount
private volatile int toBatchCount -
closed
volatile boolean closed -
consecutiveExecutor
-
executor
-
level
ClientLevel level -
renderer
-
camera
-
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() -
getStats
-
getToBatchCount
public int getToBatchCount() -
getToUpload
public int getToUpload() -
getFreeBufferCount
public int getFreeBufferCount() -
setCamera
-
getCameraPosition
-
uploadAllPendingUploads
public void uploadAllPendingUploads() -
rebuildSectionSync
public void rebuildSectionSync(SectionRenderDispatcher.RenderSection pSection, RenderRegionCache pRegionCache) -
blockUntilClear
public void blockUntilClear() -
schedule
-
clearBatchQueue
private void clearBatchQueue() -
isQueueEmpty
public boolean isQueueEmpty() -
dispose
public void dispose()
-