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 SectionMesh
private final List
<BlockEntity> private TranslucencyPointOfView
private final MeshData.SortState
static final SectionMesh
private final VisibilitySet
-
Constructor Summary
ConstructorsConstructorDescriptionCompiledSectionMesh
(TranslucencyPointOfView pTranslucencyPointOfView, SectionCompiler.Results pResults) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
facesCanSeeEachother
(Direction pFace1, Direction pFace2) getBuffers
(ChunkSectionLayer pLayer) boolean
boolean
boolean
isDifferentPointOfView
(TranslucencyPointOfView pPointOfView) boolean
isEmpty
(ChunkSectionLayer pLayer) void
setTranslucencyPointOfView
(TranslucencyPointOfView pTranslucencyPointOfView) void
uploadLayerIndexBuffer
(ChunkSectionLayer pLayer, ByteBufferBuilder.Result pResult, long pSectionNode) void
uploadMeshLayer
(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:
isDifferentPointOfView
in interfaceSectionMesh
-
hasRenderableLayers
public boolean hasRenderableLayers()- Specified by:
hasRenderableLayers
in interfaceSectionMesh
-
isEmpty
- Specified by:
isEmpty
in interfaceSectionMesh
-
getRenderableBlockEntities
- Specified by:
getRenderableBlockEntities
in interfaceSectionMesh
-
facesCanSeeEachother
- Specified by:
facesCanSeeEachother
in interfaceSectionMesh
-
getBuffers
- Specified by:
getBuffers
in interfaceSectionMesh
-
uploadMeshLayer
-
uploadLayerIndexBuffer
public void uploadLayerIndexBuffer(ChunkSectionLayer pLayer, ByteBufferBuilder.Result pResult, long pSectionNode) -
hasTranslucentGeometry
public boolean hasTranslucentGeometry()- Specified by:
hasTranslucentGeometry
in interfaceSectionMesh
-
getTransparencyState
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSectionMesh
-