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
official ell
intermediary net/minecraft/class_286
named net/minecraft/client/render/BufferRenderer
  • Field Details

    • currentVertexBuffer

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

    • BufferRenderer

      public BufferRenderer()
  • Method Details

    • reset

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

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

      public static void drawWithGlobalProgram(BufferBuilder.BuiltBuffer buffer)
      Draws buffer using the shader program specified with RenderSystem#setShader
      Mappings:
      Namespace Name Mixin selector
      official a Lell;a(Lelk$b;)V
      intermediary method_43433 Lnet/minecraft/class_286;method_43433(Lnet/minecraft/class_287$class_7433;)V
      named drawWithGlobalProgram Lnet/minecraft/client/render/BufferRenderer;drawWithGlobalProgram(Lnet/minecraft/client/render/BufferBuilder$BuiltBuffer;)V
    • drawWithGlobalProgramInternal

      private static void drawWithGlobalProgramInternal(BufferBuilder.BuiltBuffer buffer)
      Mappings:
      Namespace Name Mixin selector
      official c Lell;c(Lelk$b;)V
      intermediary method_43438 Lnet/minecraft/class_286;method_43438(Lnet/minecraft/class_287$class_7433;)V
      named drawWithGlobalProgramInternal Lnet/minecraft/client/render/BufferRenderer;drawWithGlobalProgramInternal(Lnet/minecraft/client/render/BufferBuilder$BuiltBuffer;)V
    • draw

      public static void draw(BufferBuilder.BuiltBuffer buffer)
      Draws buffer.

      Unlike drawWithGlobalProgram(net.minecraft.client.render.BufferBuilder.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
      official b Lell;b(Lelk$b;)V
      intermediary method_43437 Lnet/minecraft/class_286;method_43437(Lnet/minecraft/class_287$class_7433;)V
      named draw Lnet/minecraft/client/render/BufferRenderer;draw(Lnet/minecraft/client/render/BufferBuilder$BuiltBuffer;)V
    • upload

      @Nullable private static @Nullable VertexBuffer upload(BufferBuilder.BuiltBuffer buffer)
      Mappings:
      Namespace Name Mixin selector
      official d Lell;d(Lelk$b;)Lels;
      intermediary method_43439 Lnet/minecraft/class_286;method_43439(Lnet/minecraft/class_287$class_7433;)Lnet/minecraft/class_291;
      named upload Lnet/minecraft/client/render/BufferRenderer;upload(Lnet/minecraft/client/render/BufferBuilder$BuiltBuffer;)Lnet/minecraft/client/gl/VertexBuffer;
    • bind

      private static VertexBuffer bind(VertexFormat vertexFormat)
      Mappings:
      Namespace Name Mixin selector
      official a Lell;a(Lelu;)Lels;
      intermediary method_43435 Lnet/minecraft/class_286;method_43435(Lnet/minecraft/class_293;)Lnet/minecraft/class_291;
      named bind Lnet/minecraft/client/render/BufferRenderer;bind(Lnet/minecraft/client/render/VertexFormat;)Lnet/minecraft/client/gl/VertexBuffer;
    • bind

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