Class OverlayRenderer

java.lang.Object
net.lugo.overlaylib.OverlayRenderer
Direct Known Subclasses:
CachedMeshOverlayRenderer

public abstract class OverlayRenderer extends Object
  • Field Details

    • buffer

      protected com.mojang.blaze3d.vertex.BufferBuilder buffer
    • batchStarted

      protected boolean batchStarted
  • Constructor Details

    • OverlayRenderer

      protected OverlayRenderer(com.mojang.blaze3d.pipeline.RenderPipeline renderPipeline, net.minecraft.resources.Identifier texture)
    • OverlayRenderer

      protected OverlayRenderer(com.mojang.blaze3d.pipeline.RenderPipeline renderPipeline, net.minecraft.resources.Identifier texture, boolean doIrisFlickerFix)
  • Method Details

    • resetTextureSetups

      public static void resetTextureSetups()
    • renderSections

      public OverlayRenderer.RenderResult renderSections(OverlayManager manager, List<net.minecraft.core.SectionPos> sections)
    • startBatch

      public void startBatch(net.fabricmc.fabric.api.client.rendering.v1.level.LevelRenderContext context)
    • endBatch

      public void endBatch()
    • getFrameStateToken

      public long getFrameStateToken()
    • clearCache

      public void clearCache()
    • close

      public void close()
    • beginSection

      public final void beginSection(net.minecraft.core.SectionPos sectionPos)
    • addBlock

      public final void addBlock(OverlayRendererBlockData data)
    • endSection

      public final com.mojang.blaze3d.vertex.MeshData endSection()
    • drawSection

      public final void drawSection(net.minecraft.core.SectionPos sectionPos, SectionMeshCache.SectionMesh mesh)
    • drawSection

      public final void drawSection(net.minecraft.core.SectionPos sectionPos, com.mojang.blaze3d.buffers.GpuBufferSlice slice, int indexCount)
    • isSectionNotVisible

      protected boolean isSectionNotVisible(net.minecraft.core.SectionPos sectionPos)
    • addVertices

      protected abstract void addVertices(float x, float y, float z, OverlayRendererBlockData blockData)