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 dqn
intermediary net/minecraft/class_291
named net/minecraft/client/gl/VertexBuffer
  • Field Details

    • vertexBufferId

      private int vertexBufferId
      Mappings:
      Namespace Name Mixin selector
      official a Ldqn;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 Ldqn;b:I
      intermediary field_27366 Lnet/minecraft/class_291;field_27366:I
      named indexBufferId Lnet/minecraft/client/gl/VertexBuffer;indexBufferId:I
    • vertexFormat

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

      private int vertexArrayId
      Mappings:
      Namespace Name Mixin selector
      official d Ldqn;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 Ldqn;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 Ldqn;f:Ldqp$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;
    • usesTexture

      private boolean usesTexture
      Mappings:
      Namespace Name Mixin selector
      official g Ldqn;g:Z
      intermediary field_27369 Lnet/minecraft/class_291;field_27369:Z
      named usesTexture Lnet/minecraft/client/gl/VertexBuffer;usesTexture:Z
    • elementFormat

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

    • VertexBuffer

      public VertexBuffer()
  • Method Details

    • bind

      public void bind()
      Mappings:
      Namespace Name Mixin selector
      official a Ldqn;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 Ldqn;a(Ldqf;)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 Ldqn;b(Ldqf;)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 Ldqn;c(Ldqf;)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 Ldqn;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 Ldqn;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 Ldqn;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 Ldqn;a(Ld;Ld;Lens;)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 Ldqn;b(Ld;Ld;Lens;)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 Ldqn;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 Ldqn;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
    • getElementFormat

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