Class BufferBuilder

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

@Environment(CLIENT) public class BufferBuilder extends Object
Mappings:
Namespace Name
official ctq
intermediary net/minecraft/class_520
named net/minecraft/client/render/BufferBuilder
  • Field Details

    • field_13461

      private static final Logger field_13461
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_13461 Lnet/minecraft/class_520;field_13461:Lorg/apache/logging/log4j/Logger;
      named field_13461 Lnet/minecraft/client/render/BufferBuilder;field_13461:Lorg/apache/logging/log4j/Logger;
    • buffer

      private ByteBuffer buffer
      Mappings:
      Namespace Name Mixin selector
      official b Lctq;b:Ljava/nio/ByteBuffer;
      intermediary field_10642 Lnet/minecraft/class_520;field_10642:Ljava/nio/ByteBuffer;
      named buffer Lnet/minecraft/client/render/BufferBuilder;buffer:Ljava/nio/ByteBuffer;
    • intBuffer

      private IntBuffer intBuffer
      Mappings:
      Namespace Name Mixin selector
      official c Lctq;c:Ljava/nio/IntBuffer;
      intermediary field_10643 Lnet/minecraft/class_520;field_10643:Ljava/nio/IntBuffer;
      named intBuffer Lnet/minecraft/client/render/BufferBuilder;intBuffer:Ljava/nio/IntBuffer;
    • shortBuffer

      private ShortBuffer shortBuffer
      Mappings:
      Namespace Name Mixin selector
      official d Lctq;d:Ljava/nio/ShortBuffer;
      intermediary field_10644 Lnet/minecraft/class_520;field_10644:Ljava/nio/ShortBuffer;
      named shortBuffer Lnet/minecraft/client/render/BufferBuilder;shortBuffer:Ljava/nio/ShortBuffer;
    • floatBuffer

      private FloatBuffer floatBuffer
      Mappings:
      Namespace Name Mixin selector
      official e Lctq;e:Ljava/nio/FloatBuffer;
      intermediary field_10645 Lnet/minecraft/class_520;field_10645:Ljava/nio/FloatBuffer;
      named floatBuffer Lnet/minecraft/client/render/BufferBuilder;floatBuffer:Ljava/nio/FloatBuffer;
    • vertexCount

      private int vertexCount
      Mappings:
      Namespace Name Mixin selector
      official f Lctq;f:I
      intermediary field_10646 Lnet/minecraft/class_520;field_10646:I
      named vertexCount Lnet/minecraft/client/render/BufferBuilder;vertexCount:I
    • currentElement

      private VertexFormatElement currentElement
      Mappings:
      Namespace Name Mixin selector
      official g Lctq;g:Lddx;
      intermediary field_10647 Lnet/minecraft/class_520;field_10647:Lnet/minecraft/class_2523;
      named currentElement Lnet/minecraft/client/render/BufferBuilder;currentElement:Lnet/minecraft/client/render/VertexFormatElement;
    • currentElementId

      private int currentElementId
      Mappings:
      Namespace Name Mixin selector
      official h Lctq;h:I
      intermediary field_10648 Lnet/minecraft/class_520;field_10648:I
      named currentElementId Lnet/minecraft/client/render/BufferBuilder;currentElementId:I
    • textured

      private boolean textured
      Mappings:
      Namespace Name Mixin selector
      official i Lctq;i:Z
      intermediary field_1795 Lnet/minecraft/class_520;field_1795:Z
      named textured Lnet/minecraft/client/render/BufferBuilder;textured:Z
    • drawMode

      private int drawMode
      Mappings:
      Namespace Name Mixin selector
      official j Lctq;j:I
      intermediary field_10649 Lnet/minecraft/class_520;field_10649:I
      named drawMode Lnet/minecraft/client/render/BufferBuilder;drawMode:I
    • offsetX

      private double offsetX
      Mappings:
      Namespace Name Mixin selector
      official k Lctq;k:D
      intermediary field_10650 Lnet/minecraft/class_520;field_10650:D
      named offsetX Lnet/minecraft/client/render/BufferBuilder;offsetX:D
    • offsetY

      private double offsetY
      Mappings:
      Namespace Name Mixin selector
      official l Lctq;l:D
      intermediary field_10651 Lnet/minecraft/class_520;field_10651:D
      named offsetY Lnet/minecraft/client/render/BufferBuilder;offsetY:D
    • offsetZ

      private double offsetZ
      Mappings:
      Namespace Name Mixin selector
      official m Lctq;m:D
      intermediary field_10652 Lnet/minecraft/class_520;field_10652:D
      named offsetZ Lnet/minecraft/client/render/BufferBuilder;offsetZ:D
    • format

      private VertexFormat format
      Mappings:
      Namespace Name Mixin selector
      official n Lctq;n:Lddw;
      intermediary field_10653 Lnet/minecraft/class_520;field_10653:Lnet/minecraft/class_2522;
      named format Lnet/minecraft/client/render/BufferBuilder;format:Lnet/minecraft/client/render/VertexFormat;
    • building

      private boolean building
      Mappings:
      Namespace Name Mixin selector
      official o Lctq;o:Z
      intermediary field_1776 Lnet/minecraft/class_520;field_1776:Z
      named building Lnet/minecraft/client/render/BufferBuilder;building:Z
  • Constructor Details

    • BufferBuilder

      public BufferBuilder(int initialCapacity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lctq;<init>(I)V
      intermediary <init> Lnet/minecraft/class_520;<init>(I)V
      named <init> Lnet/minecraft/client/render/BufferBuilder;<init>(I)V
  • Method Details

    • grow

      private void grow(int size)
      Mappings:
      Namespace Name Mixin selector
      official b Lctq;b(I)V
      intermediary method_9745 Lnet/minecraft/class_520;method_9745(I)V
      named grow Lnet/minecraft/client/render/BufferBuilder;grow(I)V
    • sortQuads

      public void sortQuads(float cameraX, float cameraY, float cameraZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a(FFF)V
      intermediary method_9730 Lnet/minecraft/class_520;method_9730(FFF)V
      named sortQuads Lnet/minecraft/client/render/BufferBuilder;sortQuads(FFF)V
    • method_9727

      public BufferBuilder.DrawArrayParameters method_9727()
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a()Lctq$a;
      intermediary method_9727 Lnet/minecraft/class_520;method_9727()Lnet/minecraft/class_520$class_2394;
      named method_9727 Lnet/minecraft/client/render/BufferBuilder;method_9727()Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;
    • method_9757

      private int method_9757()
      Mappings:
      Namespace Name Mixin selector
      official j Lctq;j()I
      intermediary method_9757 Lnet/minecraft/class_520;method_9757()I
      named method_9757 Lnet/minecraft/client/render/BufferBuilder;method_9757()I
    • getDistanceSq

      private static float getDistanceSq(FloatBuffer buffer, float x, float y, float z, int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a(Ljava/nio/FloatBuffer;FFFII)F
      intermediary method_9739 Lnet/minecraft/class_520;method_9739(Ljava/nio/FloatBuffer;FFFII)F
      named getDistanceSq Lnet/minecraft/client/render/BufferBuilder;getDistanceSq(Ljava/nio/FloatBuffer;FFFII)F
    • method_9738

      public void method_9738(BufferBuilder.DrawArrayParameters drawArrayParameters)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a(Lctq$a;)V
      intermediary method_9738 Lnet/minecraft/class_520;method_9738(Lnet/minecraft/class_520$class_2394;)V
      named method_9738 Lnet/minecraft/client/render/BufferBuilder;method_9738(Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;)V
    • reset

      public void reset()
      Mappings:
      Namespace Name Mixin selector
      official b Lctq;b()V
      intermediary method_9741 Lnet/minecraft/class_520;method_9741()V
      named reset Lnet/minecraft/client/render/BufferBuilder;reset()V
    • begin

      public void begin(int drawMode, VertexFormat format)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a(ILddw;)V
      intermediary method_9737 Lnet/minecraft/class_520;method_9737(ILnet/minecraft/class_2522;)V
      named begin Lnet/minecraft/client/render/BufferBuilder;begin(ILnet/minecraft/client/render/VertexFormat;)V
    • texture

      public BufferBuilder texture(double u, double v)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a(DD)Lctq;
      intermediary method_9728 Lnet/minecraft/class_520;method_9728(DD)Lnet/minecraft/class_520;
      named texture Lnet/minecraft/client/render/BufferBuilder;texture(DD)Lnet/minecraft/client/render/BufferBuilder;
    • texture2

      public BufferBuilder texture2(int u, int v)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a(II)Lctq;
      intermediary method_9734 Lnet/minecraft/class_520;method_9734(II)Lnet/minecraft/class_520;
      named texture2 Lnet/minecraft/client/render/BufferBuilder;texture2(II)Lnet/minecraft/client/render/BufferBuilder;
    • method_9735

      public void method_9735(int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a(IIII)V
      intermediary method_9735 Lnet/minecraft/class_520;method_9735(IIII)V
      named method_9735 Lnet/minecraft/client/render/BufferBuilder;method_9735(IIII)V
    • method_9729

      public void method_9729(double double2, double double3, double double4)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a(DDD)V
      intermediary method_9729 Lnet/minecraft/class_520;method_9729(DDD)V
      named method_9729 Lnet/minecraft/client/render/BufferBuilder;method_9729(DDD)V
    • method_1308

      private int method_1308(int int2)
      Mappings:
      Namespace Name Mixin selector
      official c Lctq;c(I)I
      intermediary method_1308 Lnet/minecraft/class_520;method_1308(I)I
      named method_1308 Lnet/minecraft/client/render/BufferBuilder;method_1308(I)I
    • method_9732

      public void method_9732(float float2, float float3, float float4, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a(FFFI)V
      intermediary method_9732 Lnet/minecraft/class_520;method_9732(FFFI)V
      named method_9732 Lnet/minecraft/client/render/BufferBuilder;method_9732(FFFI)V
    • putColor

      private void putColor(int color, int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Lctq;b(II)V
      intermediary method_9746 Lnet/minecraft/class_520;method_9746(II)V
      named putColor Lnet/minecraft/client/render/BufferBuilder;putColor(II)V
    • putColor

      public void putColor(float red, float green, float blue, int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Lctq;b(FFFI)V
      intermediary method_9744 Lnet/minecraft/class_520;method_9744(FFFI)V
      named putColor Lnet/minecraft/client/render/BufferBuilder;putColor(FFFI)V
    • method_9736

      private void method_9736(int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      official c Lctq;c(IIII)V
      intermediary method_9736 Lnet/minecraft/class_520;method_9736(IIII)V
      named method_9736 Lnet/minecraft/client/render/BufferBuilder;method_9736(IIII)V
    • enableTexture

      public void enableTexture()
      Mappings:
      Namespace Name Mixin selector
      official c Lctq;c()V
      intermediary method_1316 Lnet/minecraft/class_520;method_1316()V
      named enableTexture Lnet/minecraft/client/render/BufferBuilder;enableTexture()V
    • color

      public BufferBuilder color(float red, float green, float blue, float alpha)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a(FFFF)Lctq;
      intermediary method_9731 Lnet/minecraft/class_520;method_9731(FFFF)Lnet/minecraft/class_520;
      named color Lnet/minecraft/client/render/BufferBuilder;color(FFFF)Lnet/minecraft/client/render/BufferBuilder;
    • color

      public BufferBuilder color(int red, int green, int blue, int alpha)
      Mappings:
      Namespace Name Mixin selector
      official b Lctq;b(IIII)Lctq;
      intermediary method_9747 Lnet/minecraft/class_520;method_9747(IIII)Lnet/minecraft/class_520;
      named color Lnet/minecraft/client/render/BufferBuilder;color(IIII)Lnet/minecraft/client/render/BufferBuilder;
    • putArray

      public void putArray(int[] data)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a([I)V
      intermediary method_9740 Lnet/minecraft/class_520;method_9740([I)V
      named putArray Lnet/minecraft/client/render/BufferBuilder;putArray([I)V
    • next

      public void next()
      Mappings:
      Namespace Name Mixin selector
      official d Lctq;d()V
      intermediary method_9750 Lnet/minecraft/class_520;method_9750()V
      named next Lnet/minecraft/client/render/BufferBuilder;next()V
    • vertex

      public BufferBuilder vertex(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official b Lctq;b(DDD)Lctq;
      intermediary method_9742 Lnet/minecraft/class_520;method_9742(DDD)Lnet/minecraft/class_520;
      named vertex Lnet/minecraft/client/render/BufferBuilder;vertex(DDD)Lnet/minecraft/client/render/BufferBuilder;
    • putNormal

      public void putNormal(float x, float y, float z)
      Mappings:
      Namespace Name Mixin selector
      official b Lctq;b(FFF)V
      intermediary method_9743 Lnet/minecraft/class_520;method_9743(FFF)V
      named putNormal Lnet/minecraft/client/render/BufferBuilder;putNormal(FFF)V
    • nextElement

      private void nextElement()
      Mappings:
      Namespace Name Mixin selector
      official k Lctq;k()V
      intermediary method_9758 Lnet/minecraft/class_520;method_9758()V
      named nextElement Lnet/minecraft/client/render/BufferBuilder;nextElement()V
    • normal

      public BufferBuilder normal(float x, float y, float z)
      Mappings:
      Namespace Name Mixin selector
      official c Lctq;c(FFF)Lctq;
      intermediary method_9749 Lnet/minecraft/class_520;method_9749(FFF)Lnet/minecraft/class_520;
      named normal Lnet/minecraft/client/render/BufferBuilder;normal(FFF)Lnet/minecraft/client/render/BufferBuilder;
    • offset

      public void offset(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official c Lctq;c(DDD)V
      intermediary method_9748 Lnet/minecraft/class_520;method_9748(DDD)V
      named offset Lnet/minecraft/client/render/BufferBuilder;offset(DDD)V
    • end

      public void end()
      Mappings:
      Namespace Name Mixin selector
      official e Lctq;e()V
      intermediary method_9752 Lnet/minecraft/class_520;method_9752()V
      named end Lnet/minecraft/client/render/BufferBuilder;end()V
    • getByteBuffer

      public ByteBuffer getByteBuffer()
      Mappings:
      Namespace Name Mixin selector
      official f Lctq;f()Ljava/nio/ByteBuffer;
      intermediary method_9753 Lnet/minecraft/class_520;method_9753()Ljava/nio/ByteBuffer;
      named getByteBuffer Lnet/minecraft/client/render/BufferBuilder;getByteBuffer()Ljava/nio/ByteBuffer;
    • getFormat

      public VertexFormat getFormat()
      Mappings:
      Namespace Name Mixin selector
      official g Lctq;g()Lddw;
      intermediary method_9754 Lnet/minecraft/class_520;method_9754()Lnet/minecraft/class_2522;
      named getFormat Lnet/minecraft/client/render/BufferBuilder;getFormat()Lnet/minecraft/client/render/VertexFormat;
    • getVertexCount

      public int getVertexCount()
      Mappings:
      Namespace Name Mixin selector
      official h Lctq;h()I
      intermediary method_9755 Lnet/minecraft/class_520;method_9755()I
      named getVertexCount Lnet/minecraft/client/render/BufferBuilder;getVertexCount()I
    • getDrawMode

      public int getDrawMode()
      Mappings:
      Namespace Name Mixin selector
      official i Lctq;i()I
      intermediary method_9756 Lnet/minecraft/class_520;method_9756()I
      named getDrawMode Lnet/minecraft/client/render/BufferBuilder;getDrawMode()I
    • putQuadColor

      public void putQuadColor(int color)
      Mappings:
      Namespace Name Mixin selector
      official a Lctq;a(I)V
      intermediary method_9733 Lnet/minecraft/class_520;method_9733(I)V
      named putQuadColor Lnet/minecraft/client/render/BufferBuilder;putQuadColor(I)V
    • putQuadColor

      public void putQuadColor(float red, float green, float blue)
      Mappings:
      Namespace Name Mixin selector
      official d Lctq;d(FFF)V
      intermediary method_9751 Lnet/minecraft/class_520;method_9751(FFF)V
      named putQuadColor Lnet/minecraft/client/render/BufferBuilder;putQuadColor(FFF)V