Class CompiledSectionMesh
java.lang.Object
net.minecraft.client.renderer.chunk.CompiledSectionMesh
- All Implemented Interfaces:
AutoCloseable,SectionMesh
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ChunkSectionLayer, SectionBuffers> static final SectionMeshprivate final List<BlockEntity> private TranslucencyPointOfViewprivate final MeshData.SortStatestatic final SectionMeshprivate final VisibilitySet -
Constructor Summary
ConstructorsConstructorDescriptionCompiledSectionMesh(TranslucencyPointOfView pTranslucencyPointOfView, SectionCompiler.Results pResults) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanfacesCanSeeEachother(Direction p_427348_, Direction p_427368_) getBuffers(ChunkSectionLayer p_427316_) booleanbooleanbooleanisDifferentPointOfView(TranslucencyPointOfView p_427247_) booleanisEmpty(ChunkSectionLayer p_427390_) voidsetTranslucencyPointOfView(TranslucencyPointOfView pTranslucencyPointOfView) voiduploadLayerIndexBuffer(ChunkSectionLayer pLayer, ByteBufferBuilder.Result pResult, long pSectionNode) voiduploadMeshLayer(ChunkSectionLayer pLayer, MeshData pMeshData, long pSectionNode)
-
Field Details
-
UNCOMPILED
-
EMPTY
-
renderableBlockEntities
-
visibilitySet
-
transparencyState
-
translucencyPointOfView
-
buffers
-
-
Constructor Details
-
CompiledSectionMesh
public CompiledSectionMesh(TranslucencyPointOfView pTranslucencyPointOfView, SectionCompiler.Results pResults)
-
-
Method Details
-
setTranslucencyPointOfView
-
isDifferentPointOfView
- Specified by:
isDifferentPointOfViewin interfaceSectionMesh
-
hasRenderableLayers
public boolean hasRenderableLayers()- Specified by:
hasRenderableLayersin interfaceSectionMesh
-
isEmpty
- Specified by:
isEmptyin interfaceSectionMesh
-
getRenderableBlockEntities
- Specified by:
getRenderableBlockEntitiesin interfaceSectionMesh
-
facesCanSeeEachother
- Specified by:
facesCanSeeEachotherin interfaceSectionMesh
-
getBuffers
- Specified by:
getBuffersin interfaceSectionMesh
-
uploadMeshLayer
-
uploadLayerIndexBuffer
public void uploadLayerIndexBuffer(ChunkSectionLayer pLayer, ByteBufferBuilder.Result pResult, long pSectionNode) -
hasTranslucentGeometry
public boolean hasTranslucentGeometry()- Specified by:
hasTranslucentGeometryin interfaceSectionMesh
-
getTransparencyState
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSectionMesh
-