Class CompiledSectionMesh
java.lang.Object
net.minecraft.client.renderer.chunk.CompiledSectionMesh
- All Implemented Interfaces:
AutoCloseable, SectionMesh
-
Nested Class Summary
Nested classes/interfaces inherited from interface SectionMesh
SectionMesh.SectionDraw -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ChunkSectionLayer, SectionMesh.SectionDraw> static final SectionMeshprivate final Map<ChunkSectionLayer, AtomicBoolean> private final List<BlockEntity> private @Nullable TranslucencyPointOfViewprivate final @Nullable MeshData.SortStatestatic final SectionMeshprivate final Map<ChunkSectionLayer, AtomicBoolean> private final VisibilitySet -
Constructor Summary
ConstructorsConstructorDescriptionCompiledSectionMesh(TranslucencyPointOfView translucencyPointOfView, SectionCompiler.Results results) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanfacesCanSeeEachother(Direction direction1, Direction direction2) @Nullable SectionMesh.SectionDrawgetSectionDraw(ChunkSectionLayer layer) @Nullable MeshData.SortStatebooleanbooleanbooleanisDifferentPointOfView(TranslucencyPointOfView pointOfView) booleanisEmpty(ChunkSectionLayer layer) booleanbooleanvoidvoidsetTranslucencyPointOfView(TranslucencyPointOfView translucencyPointOfView) void
-
Field Details
-
UNCOMPILED
-
EMPTY
-
renderableBlockEntities
-
visibilitySet
-
transparencyState
-
translucencyPointOfView
-
draws
-
vertexBufferUploaded
-
indexBufferUploaded
-
-
Constructor Details
-
CompiledSectionMesh
public CompiledSectionMesh(TranslucencyPointOfView translucencyPointOfView, SectionCompiler.Results results)
-
-
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
-
getSectionDraw
- Specified by:
getSectionDrawin interfaceSectionMesh
-
isVertexBufferUploaded
-
isIndexBufferUploaded
-
setVertexBufferUploaded
-
setIndexBufferUploaded
-
hasTranslucentGeometry
public boolean hasTranslucentGeometry()- Specified by:
hasTranslucentGeometryin interfaceSectionMesh
-
getTransparencyState
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSectionMesh
-