Class BufferRenderer

java.lang.Object
net.minecraft.client.render.BufferRenderer

@Environment(CLIENT) public class BufferRenderer extends Object
Containing methods for immediately drawing a buffer built with BufferBuilder.
Mappings:
Namespace Name
named net/minecraft/client/render/BufferRenderer
intermediary net/minecraft/class_286
official ffr
  • Field Details Link icon

    • currentVertexBuffer Link icon

      @Nullable private static @Nullable VertexBuffer currentVertexBuffer
      Mappings:
      Namespace Name Mixin selector
      named currentVertexBuffer Lnet/minecraft/client/render/BufferRenderer;currentVertexBuffer:Lnet/minecraft/client/gl/VertexBuffer;
      intermediary field_38982 Lnet/minecraft/class_286;field_38982:Lnet/minecraft/class_291;
      official a Lffr;a:Lffy;
  • Constructor Details Link icon

    • BufferRenderer Link icon

      public BufferRenderer()
  • Method Details Link icon

    • reset Link icon

      public static void reset()
      Mappings:
      Namespace Name Mixin selector
      named reset Lnet/minecraft/client/render/BufferRenderer;reset()V
      intermediary method_34420 Lnet/minecraft/class_286;method_34420()V
      official a Lffr;a()V
    • resetCurrentVertexBuffer Link icon

      public static void resetCurrentVertexBuffer()
      Mappings:
      Namespace Name Mixin selector
      named resetCurrentVertexBuffer Lnet/minecraft/client/render/BufferRenderer;resetCurrentVertexBuffer()V
      intermediary method_43436 Lnet/minecraft/class_286;method_43436()V
      official b Lffr;b()V
    • drawWithGlobalProgram Link icon

      public static void drawWithGlobalProgram(BuiltBuffer buffer)
      Draws buffer using the shader program specified with RenderSystem#setShader
      Mappings:
      Namespace Name Mixin selector
      named drawWithGlobalProgram Lnet/minecraft/client/render/BufferRenderer;drawWithGlobalProgram(Lnet/minecraft/client/render/BuiltBuffer;)V
      intermediary method_43433 Lnet/minecraft/class_286;method_43433(Lnet/minecraft/class_9801;)V
      official a Lffr;a(Lffu;)V
    • draw Link icon

      public static void draw(BuiltBuffer buffer)
      Draws buffer.

      Unlike drawWithGlobalProgram(net.minecraft.client.render.BuiltBuffer), the shader program cannot be specified with RenderSystem#setShader. The caller of this method must manually bind a shader program before calling this method.

      Mappings:
      Namespace Name Mixin selector
      named draw Lnet/minecraft/client/render/BufferRenderer;draw(Lnet/minecraft/client/render/BuiltBuffer;)V
      intermediary method_43437 Lnet/minecraft/class_286;method_43437(Lnet/minecraft/class_9801;)V
      official b Lffr;b(Lffu;)V
    • upload Link icon

      private static VertexBuffer upload(BuiltBuffer buffer)
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/client/render/BufferRenderer;upload(Lnet/minecraft/client/render/BuiltBuffer;)Lnet/minecraft/client/gl/VertexBuffer;
      intermediary method_43439 Lnet/minecraft/class_286;method_43439(Lnet/minecraft/class_9801;)Lnet/minecraft/class_291;
      official c Lffr;c(Lffu;)Lffy;
    • bind Link icon

      private static VertexBuffer bind(VertexFormat vertexFormat)
      Mappings:
      Namespace Name Mixin selector
      named bind Lnet/minecraft/client/render/BufferRenderer;bind(Lnet/minecraft/client/render/VertexFormat;)Lnet/minecraft/client/gl/VertexBuffer;
      intermediary method_43435 Lnet/minecraft/class_286;method_43435(Lnet/minecraft/class_293;)Lnet/minecraft/class_291;
      official a Lffr;a(Lfga;)Lffy;
    • bind Link icon

      private static void bind(VertexBuffer vertexBuffer)
      Mappings:
      Namespace Name Mixin selector
      named bind Lnet/minecraft/client/render/BufferRenderer;bind(Lnet/minecraft/client/gl/VertexBuffer;)V
      intermediary method_43434 Lnet/minecraft/class_286;method_43434(Lnet/minecraft/class_291;)V
      official a Lffr;a(Lffy;)V