Class SectionCompiler
java.lang.Object
net.minecraft.client.renderer.chunk.SectionCompiler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final BlockColorsprivate final BlockEntityRenderDispatcherprivate final BlockStateModelSetprivate final booleanprivate final FluidStateModelSet -
Constructor Summary
ConstructorsConstructorDescriptionSectionCompiler(boolean ambientOcclusion, boolean cutoutLeaves, BlockStateModelSet blockModelSet, FluidStateModelSet fluidModelSet, BlockColors blockColors, BlockEntityRenderDispatcher blockEntityRenderer) -
Method Summary
Modifier and TypeMethodDescriptioncompile(SectionPos sectionPos, RenderSectionRegion region, VertexSorting vertexSorting, SectionBufferBuilderPack builders) compile(SectionPos sectionPos, RenderSectionRegion region, VertexSorting vertexSorting, SectionBufferBuilderPack builders, List<AddSectionGeometryEvent.AdditionalSectionRenderer> additionalRenderers) private BufferBuildergetOrBeginLayer(Map<ChunkSectionLayer, BufferBuilder> startedLayers, SectionBufferBuilderPack buffers, ChunkSectionLayer layer) private <E extends BlockEntity>
voidhandleBlockEntity(SectionCompiler.Results results, E blockEntity)
-
Field Details
-
ambientOcclusion
private final boolean ambientOcclusion -
cutoutLeaves
private final boolean cutoutLeaves -
blockModelSet
-
fluidModelSet
-
blockColors
-
blockEntityRenderer
-
-
Constructor Details
-
SectionCompiler
public SectionCompiler(boolean ambientOcclusion, boolean cutoutLeaves, BlockStateModelSet blockModelSet, FluidStateModelSet fluidModelSet, BlockColors blockColors, BlockEntityRenderDispatcher blockEntityRenderer)
-
-
Method Details
-
compile
public SectionCompiler.Results compile(SectionPos sectionPos, RenderSectionRegion region, VertexSorting vertexSorting, SectionBufferBuilderPack builders) -
compile
public SectionCompiler.Results compile(SectionPos sectionPos, RenderSectionRegion region, VertexSorting vertexSorting, SectionBufferBuilderPack builders, List<AddSectionGeometryEvent.AdditionalSectionRenderer> additionalRenderers) -
getOrBeginLayer
private BufferBuilder getOrBeginLayer(Map<ChunkSectionLayer, BufferBuilder> startedLayers, SectionBufferBuilderPack buffers, ChunkSectionLayer layer) -
handleBlockEntity
private <E extends BlockEntity> void handleBlockEntity(SectionCompiler.Results results, E blockEntity)
-