Class OverlayRenderer
java.lang.Object
net.lugo.overlaylib.OverlayRenderer
- Direct Known Subclasses:
CachedMeshOverlayRenderer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected com.mojang.blaze3d.vertex.BufferBuilder -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOverlayRenderer(com.mojang.blaze3d.pipeline.RenderPipeline renderPipeline, net.minecraft.resources.Identifier texture) protectedOverlayRenderer(com.mojang.blaze3d.pipeline.RenderPipeline renderPipeline, net.minecraft.resources.Identifier texture, boolean doIrisFlickerFix) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidprotected abstract voidaddVertices(float x, float y, float z, OverlayRendererBlockData blockData) final voidbeginSection(net.minecraft.core.SectionPos sectionPos) voidvoidclose()final voiddrawSection(net.minecraft.core.SectionPos sectionPos, com.mojang.blaze3d.buffers.GpuBufferSlice slice, int indexCount) final voiddrawSection(net.minecraft.core.SectionPos sectionPos, SectionMeshCache.SectionMesh mesh) voidendBatch()final com.mojang.blaze3d.vertex.MeshDatalongprotected booleanisSectionNotVisible(net.minecraft.core.SectionPos sectionPos) renderSections(OverlayManager manager, List<net.minecraft.core.SectionPos> sections) static voidvoidstartBatch(net.fabricmc.fabric.api.client.rendering.v1.level.LevelRenderContext context)
-
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
-
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
-