Class SectionCompiler
java.lang.Object
net.minecraft.client.renderer.chunk.SectionCompiler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockEntityRenderDispatcher
private final BlockRenderDispatcher
-
Constructor Summary
ConstructorsConstructorDescriptionSectionCompiler
(BlockRenderDispatcher blockRenderer, BlockEntityRenderDispatcher blockEntityRenderer) -
Method Summary
Modifier and TypeMethodDescriptioncompile
(SectionPos sectionPos, RenderChunkRegion region, VertexSorting vertexSorting, SectionBufferBuilderPack sectionBufferBuilderPack) compile
(SectionPos sectionPos, RenderChunkRegion region, VertexSorting vertexSorting, SectionBufferBuilderPack sectionBufferBuilderPack, List<AddSectionGeometryEvent.AdditionalSectionRenderer> additionalRenderers) private BufferBuilder
getOrBeginLayer
(Map<RenderType, BufferBuilder> bufferLayers, SectionBufferBuilderPack sectionBufferBuilderPack, RenderType renderType) private <E extends BlockEntity>
voidhandleBlockEntity
(SectionCompiler.Results results, E blockEntity)
-
Field Details
-
blockRenderer
-
blockEntityRenderer
-
-
Constructor Details
-
SectionCompiler
public SectionCompiler(BlockRenderDispatcher blockRenderer, BlockEntityRenderDispatcher blockEntityRenderer)
-
-
Method Details
-
compile
public SectionCompiler.Results compile(SectionPos sectionPos, RenderChunkRegion region, VertexSorting vertexSorting, SectionBufferBuilderPack sectionBufferBuilderPack) -
compile
public SectionCompiler.Results compile(SectionPos sectionPos, RenderChunkRegion region, VertexSorting vertexSorting, SectionBufferBuilderPack sectionBufferBuilderPack, List<AddSectionGeometryEvent.AdditionalSectionRenderer> additionalRenderers) -
getOrBeginLayer
private BufferBuilder getOrBeginLayer(Map<RenderType, BufferBuilder> bufferLayers, SectionBufferBuilderPack sectionBufferBuilderPack, RenderType renderType) -
handleBlockEntity
private <E extends BlockEntity> void handleBlockEntity(SectionCompiler.Results results, E blockEntity)
-