Class SectionRenderDispatcher.RenderSection

java.lang.Object
net.minecraft.client.renderer.chunk.SectionRenderDispatcher.RenderSection
All Implemented Interfaces:
IRenderableSection
Enclosing class:
SectionRenderDispatcher

public class SectionRenderDispatcher.RenderSection extends Object implements IRenderableSection
  • Field Details

  • Constructor Details

    • RenderSection

      public RenderSection(int index, long sectionNode)
  • Method Details

    • getVisibility

      public float getVisibility(long now)
    • setFadeDuration

      public void setFadeDuration(long fadeDuration)
    • setWasPreviouslyEmpty

      public void setWasPreviouslyEmpty(boolean wasPreviouslyEmpty)
    • wasPreviouslyEmpty

      public boolean wasPreviouslyEmpty()
    • doesChunkExistAt

      private boolean doesChunkExistAt(long sectionNode)
    • hasAllNeighbors

      public boolean hasAllNeighbors()
    • getBoundingBox

      public AABB getBoundingBox()
      Description copied from interface: IRenderableSection
      Returns the bounding box of the section.
      Specified by:
      getBoundingBox in interface IRenderableSection
      Returns:
      the bounding box of the section
    • setSectionNode

      public void setSectionNode(long sectionNode)
    • getSectionMesh

      public SectionMesh getSectionMesh()
    • reset

      public void reset()
    • getRenderOrigin

      public BlockPos getRenderOrigin()
      Description copied from interface: IRenderableSection
      Returns the block position at the origin of the section.
      Specified by:
      getRenderOrigin in interface IRenderableSection
      Returns:
      the block position at the origin of the section
    • getSectionNode

      public long getSectionNode()
    • setDirty

      public void setDirty(boolean fromPlayer)
    • setNotDirty

      public void setNotDirty()
    • isDirty

      public boolean isDirty()
    • isDirtyFromPlayer

      public boolean isDirtyFromPlayer()
    • getNeighborSectionNode

      public long getNeighborSectionNode(Direction direction)
    • resortTransparency

      public void resortTransparency(SectionRenderDispatcher dispatcher)
    • hasTranslucentGeometry

      public boolean hasTranslucentGeometry()
    • transparencyResortingScheduled

      public boolean transparencyResortingScheduled()
    • cancelTasks

      protected void cancelTasks()
    • createCompileTask

    • rebuildSectionAsync

      public void rebuildSectionAsync(RenderRegionCache cache)
    • compileSync

      public void compileSync(RenderRegionCache cache)
    • setSectionMesh

      private SectionMesh setSectionMesh(SectionMesh sectionMesh)
    • releaseSectionMesh

      private void releaseSectionMesh(SectionMesh oldMesh)
    • createVertexSorting

      private VertexSorting createVertexSorting(SectionPos sectionPos, Vec3 cameraPos)
    • checkSectionMesh

      private void checkSectionMesh(CompiledSectionMesh compiledSectionMesh)
    • vertexBufferUploadCallback

      void vertexBufferUploadCallback(SectionMesh sectionMesh, ChunkSectionLayer layer)
    • indexBufferUploadCallback

      void indexBufferUploadCallback(SectionMesh sectionMesh, ChunkSectionLayer layer, boolean sortedIndexBuffer)
    • addSectionBuffersToUberBuffer

      private boolean addSectionBuffersToUberBuffer(ChunkSectionLayer layer, CompiledSectionMesh key, @Nullable ByteBuffer vertexBuffer, @Nullable ByteBuffer indexBuffer)
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: IRenderableSection
      Returns true if the compiled section contains no chunk render layers.
      Specified by:
      isEmpty in interface IRenderableSection
      Returns:
      true if the compiled section contains no chunk render layers