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 time)
    • setFadeDuration

      public void setFadeDuration(long fadeDuration)
    • setWasPreviouslyEmpty

      public void setWasPreviouslyEmpty(boolean wasPreviouslyEmpty)
    • wasPreviouslyEmpty

      public boolean wasPreviouslyEmpty()
    • doesChunkExistAt

      private boolean doesChunkExistAt(long pos)
    • 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
    • upload

      public CompletableFuture<Void> upload(Map<ChunkSectionLayer,MeshData> renderedLayers, CompiledSectionMesh mesh)
    • uploadSectionIndexBuffer

      public CompletableFuture<Void> uploadSectionIndexBuffer(CompiledSectionMesh mesh, ByteBufferBuilder.Result result, ChunkSectionLayer layer)
    • 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 playerChanged)
    • 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 regionCache)
    • compileSync

      public void compileSync(RenderRegionCache regionCache)
    • setSectionMesh

      void setSectionMesh(SectionMesh sectionMesh)
    • createVertexSorting

      VertexSorting createVertexSorting(SectionPos sectionPos)
    • 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