Class VertexBuffer

java.lang.Object
net.minecraft.client.gl.VertexBuffer
All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public class VertexBuffer extends Object implements AutoCloseable
Mappings:
Namespace Name
official dtp
intermediary net/minecraft/class_291
named net/minecraft/client/gl/VertexBuffer
  • Field Details

    • vertexBufferId

      private int vertexBufferId
      Mappings:
      Namespace Name Mixin selector
      official a Ldtp;a:I
      intermediary field_1594 Lnet/minecraft/class_291;field_1594:I
      named vertexBufferId Lnet/minecraft/client/gl/VertexBuffer;vertexBufferId:I
    • indexBufferId

      private int indexBufferId
      Mappings:
      Namespace Name Mixin selector
      official b Ldtp;b:I
      intermediary field_27366 Lnet/minecraft/class_291;field_27366:I
      named indexBufferId Lnet/minecraft/client/gl/VertexBuffer;indexBufferId:I
    • elementFormat

      private VertexFormat.IntType elementFormat
      Mappings:
      Namespace Name Mixin selector
      official c Ldtp;c:Ldtr$a;
      intermediary field_27367 Lnet/minecraft/class_291;field_27367:Lnet/minecraft/class_293$class_5595;
      named elementFormat Lnet/minecraft/client/gl/VertexBuffer;elementFormat:Lnet/minecraft/client/render/VertexFormat$IntType;
    • vertexArrayId

      private int vertexArrayId
      Mappings:
      Namespace Name Mixin selector
      official d Ldtp;d:I
      intermediary field_29338 Lnet/minecraft/class_291;field_29338:I
      named vertexArrayId Lnet/minecraft/client/gl/VertexBuffer;vertexArrayId:I
    • vertexCount

      private int vertexCount
      Mappings:
      Namespace Name Mixin selector
      official e Ldtp;e:I
      intermediary field_1593 Lnet/minecraft/class_291;field_1593:I
      named vertexCount Lnet/minecraft/client/gl/VertexBuffer;vertexCount:I
    • drawMode

      private VertexFormat.DrawMode drawMode
      Mappings:
      Namespace Name Mixin selector
      official f Ldtp;f:Ldtr$b;
      intermediary field_27368 Lnet/minecraft/class_291;field_27368:Lnet/minecraft/class_293$class_5596;
      named drawMode Lnet/minecraft/client/gl/VertexBuffer;drawMode:Lnet/minecraft/client/render/VertexFormat$DrawMode;
    • hasNoIndexBuffer

      private boolean hasNoIndexBuffer
      Mappings:
      Namespace Name Mixin selector
      official g Ldtp;g:Z
      intermediary field_27369 Lnet/minecraft/class_291;field_27369:Z
      named hasNoIndexBuffer Lnet/minecraft/client/gl/VertexBuffer;hasNoIndexBuffer:Z
    • vertexFormat

      private VertexFormat vertexFormat
      Mappings:
      Namespace Name Mixin selector
      official h Ldtp;h:Ldtr;
      intermediary field_29339 Lnet/minecraft/class_291;field_29339:Lnet/minecraft/class_293;
      named vertexFormat Lnet/minecraft/client/gl/VertexBuffer;vertexFormat:Lnet/minecraft/client/render/VertexFormat;
  • Constructor Details

    • VertexBuffer

      public VertexBuffer()
  • Method Details

    • bind

      public void bind()
      Mappings:
      Namespace Name Mixin selector
      official a Ldtp;a()V
      intermediary method_1353 Lnet/minecraft/class_291;method_1353()V
      named bind Lnet/minecraft/client/gl/VertexBuffer;bind()V
    • upload

      public void upload(BufferBuilder buffer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldtp;a(Ldth;)V
      intermediary method_1352 Lnet/minecraft/class_291;method_1352(Lnet/minecraft/class_287;)V
      named upload Lnet/minecraft/client/gl/VertexBuffer;upload(Lnet/minecraft/client/render/BufferBuilder;)V
    • submitUpload

      public CompletableFuture<Void> submitUpload(BufferBuilder buffer)
      Mappings:
      Namespace Name Mixin selector
      official b Ldtp;b(Ldth;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_22643 Lnet/minecraft/class_291;method_22643(Lnet/minecraft/class_287;)Ljava/util/concurrent/CompletableFuture;
      named submitUpload Lnet/minecraft/client/gl/VertexBuffer;submitUpload(Lnet/minecraft/client/render/BufferBuilder;)Ljava/util/concurrent/CompletableFuture;
    • uploadInternal

      private void uploadInternal(BufferBuilder buffer)
      Mappings:
      Namespace Name Mixin selector
      official c Ldtp;c(Ldth;)V
      intermediary method_22644 Lnet/minecraft/class_291;method_22644(Lnet/minecraft/class_287;)V
      named uploadInternal Lnet/minecraft/client/gl/VertexBuffer;uploadInternal(Lnet/minecraft/client/render/BufferBuilder;)V
    • bindVertexArray

      private void bindVertexArray()
      Mappings:
      Namespace Name Mixin selector
      official g Ldtp;g()V
      intermediary method_34437 Lnet/minecraft/class_291;method_34437()V
      named bindVertexArray Lnet/minecraft/client/gl/VertexBuffer;bindVertexArray()V
    • unbindVertexArray

      public static void unbindVertexArray()
      Mappings:
      Namespace Name Mixin selector
      official b Ldtp;b()V
      intermediary method_34430 Lnet/minecraft/class_291;method_34430()V
      named unbindVertexArray Lnet/minecraft/client/gl/VertexBuffer;unbindVertexArray()V
    • drawElements

      public void drawElements()
      Mappings:
      Namespace Name Mixin selector
      official c Ldtp;c()V
      intermediary method_35665 Lnet/minecraft/class_291;method_35665()V
      named drawElements Lnet/minecraft/client/gl/VertexBuffer;drawElements()V
    • setShader

      public void setShader(Matrix4f viewMatrix, Matrix4f projectionMatrix, Shader shader)
      Mappings:
      Namespace Name Mixin selector
      official a Ldtp;a(Ld;Ld;Lerd;)V
      intermediary method_34427 Lnet/minecraft/class_291;method_34427(Lnet/minecraft/class_1159;Lnet/minecraft/class_1159;Lnet/minecraft/class_5944;)V
      named setShader Lnet/minecraft/client/gl/VertexBuffer;setShader(Lnet/minecraft/util/math/Matrix4f;Lnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/Shader;)V
    • innerSetShader

      public void innerSetShader(Matrix4f viewMatrix, Matrix4f projectionMatrix, Shader shader)
      Mappings:
      Namespace Name Mixin selector
      official b Ldtp;b(Ld;Ld;Lerd;)V
      intermediary method_34431 Lnet/minecraft/class_291;method_34431(Lnet/minecraft/class_1159;Lnet/minecraft/class_1159;Lnet/minecraft/class_5944;)V
      named innerSetShader Lnet/minecraft/client/gl/VertexBuffer;innerSetShader(Lnet/minecraft/util/math/Matrix4f;Lnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/Shader;)V
    • drawVertices

      public void drawVertices()
      Mappings:
      Namespace Name Mixin selector
      official d Ldtp;d()V
      intermediary method_34432 Lnet/minecraft/class_291;method_34432()V
      named drawVertices Lnet/minecraft/client/gl/VertexBuffer;drawVertices()V
    • unbind

      public static void unbind()
      Mappings:
      Namespace Name Mixin selector
      official e Ldtp;e()V
      intermediary method_1354 Lnet/minecraft/class_291;method_1354()V
      named unbind Lnet/minecraft/client/gl/VertexBuffer;unbind()V
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getVertexFormat

      public VertexFormat getVertexFormat()
      Mappings:
      Namespace Name Mixin selector
      official f Ldtp;f()Ldtr;
      intermediary method_34435 Lnet/minecraft/class_291;method_34435()Lnet/minecraft/class_293;
      named getVertexFormat Lnet/minecraft/client/gl/VertexBuffer;getVertexFormat()Lnet/minecraft/client/render/VertexFormat;