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 eam
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 Leam;a:Leat;
      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

    • unbindAll

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

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

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

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

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

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

      Mappings:
      Namespace Name Mixin selector
      official b Leam;b(Leal$b;)V
      intermediary method_43437 Lnet/minecraft/class_286;method_43437(Lnet/minecraft/class_287$class_7433;)V
      named drawWithoutShader Lnet/minecraft/client/render/BufferRenderer;drawWithoutShader(Lnet/minecraft/client/render/BufferBuilder$BuiltBuffer;)V
    • getVertexBuffer

      @Nullable private static @Nullable VertexBuffer getVertexBuffer(BufferBuilder.BuiltBuffer buffer)
      Mappings:
      Namespace Name Mixin selector
      official d Leam;d(Leal$b;)Leat;
      intermediary method_43439 Lnet/minecraft/class_286;method_43439(Lnet/minecraft/class_287$class_7433;)Lnet/minecraft/class_291;
      named getVertexBuffer Lnet/minecraft/client/render/BufferRenderer;getVertexBuffer(Lnet/minecraft/client/render/BufferBuilder$BuiltBuffer;)Lnet/minecraft/client/gl/VertexBuffer;
    • bindAndSet

      private static VertexBuffer bindAndSet(VertexFormat vertexFormat)
      Mappings:
      Namespace Name Mixin selector
      official a Leam;a(Leav;)Leat;
      intermediary method_43435 Lnet/minecraft/class_286;method_43435(Lnet/minecraft/class_293;)Lnet/minecraft/class_291;
      named bindAndSet Lnet/minecraft/client/render/BufferRenderer;bindAndSet(Lnet/minecraft/client/render/VertexFormat;)Lnet/minecraft/client/gl/VertexBuffer;
    • bindAndSet

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