Class CachedBufferSource

java.lang.Object
foundry.veil.api.client.render.CachedBufferSource
All Implemented Interfaces:
AutoCloseable, net.minecraft.client.renderer.MultiBufferSource, org.lwjgl.system.NativeResource

public class CachedBufferSource extends Object implements net.minecraft.client.renderer.MultiBufferSource, org.lwjgl.system.NativeResource
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.renderer.MultiBufferSource

    net.minecraft.client.renderer.MultiBufferSource.BufferSource
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.objects.Object2ObjectMap<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.ByteBufferBuilder>
     
    protected net.minecraft.client.renderer.RenderType
     
    protected final Map<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.BufferBuilder>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    endBatch(net.minecraft.client.renderer.RenderType pRenderType)
     
    void
     
    void
     
    com.mojang.blaze3d.vertex.VertexConsumer
    getBuffer(net.minecraft.client.renderer.RenderType renderType)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close
  • Field Details

    • buffers

      protected final it.unimi.dsi.fastutil.objects.Object2ObjectMap<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.ByteBufferBuilder> buffers
    • startedBuilders

      protected final Map<net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.vertex.BufferBuilder> startedBuilders
    • lastSharedType

      @Nullable protected net.minecraft.client.renderer.RenderType lastSharedType
  • Constructor Details

    • CachedBufferSource

      public CachedBufferSource()
  • Method Details

    • getBuffer

      public com.mojang.blaze3d.vertex.VertexConsumer getBuffer(net.minecraft.client.renderer.RenderType renderType)
      Specified by:
      getBuffer in interface net.minecraft.client.renderer.MultiBufferSource
    • free

      public void free()
      Specified by:
      free in interface org.lwjgl.system.NativeResource
    • endLastBatch

      public void endLastBatch()
    • endBatch

      public void endBatch()
    • endBatch

      public void endBatch(net.minecraft.client.renderer.RenderType pRenderType)