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

    • vertexBufferId

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

      private int vertexArrayId
      Mappings:
      Namespace Name Mixin selector
      official c Ldxv;c:I
      intermediary field_29338 Lnet/minecraft/class_291;field_29338:I
      named vertexArrayId Lnet/minecraft/client/gl/VertexBuffer;vertexArrayId:I
    • vertexFormat

      @Nullable private @Nullable VertexFormat vertexFormat
      Mappings:
      Namespace Name Mixin selector
      official d Ldxv;d:Ldxx;
      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;
    • field_38983

      @Nullable private RenderSystem.IndexBuffer field_38983
      Mappings:
      Namespace Name Mixin selector
      official e Ldxv;e:Lcom/mojang/blaze3d/systems/RenderSystem$a;
      intermediary field_38983 Lnet/minecraft/class_291;field_38983:Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;
      named field_38983 Lnet/minecraft/client/gl/VertexBuffer;field_38983:Lcom/mojang/blaze3d/systems/RenderSystem$IndexBuffer;
    • elementFormat

      private VertexFormat.IntType elementFormat
      Mappings:
      Namespace Name Mixin selector
      official f Ldxv;f:Ldxx$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;
    • vertexCount

      private int vertexCount
      Mappings:
      Namespace Name Mixin selector
      official g Ldxv;g: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 h Ldxv;h:Ldxx$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;
  • Constructor Details

    • VertexBuffer

      public VertexBuffer()
  • Method Details

    • submitUpload

      public CompletableFuture<Void> submitUpload(BufferBuilder buffer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxv;a(Ldxn;)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 bufferBuilder)
      Mappings:
      Namespace Name Mixin selector
      official c Ldxv;c(Ldxn;)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
    • upload

      public void upload(BufferBuilder buffer)
      Mappings:
      Namespace Name Mixin selector
      official b Ldxv;b(Ldxn;)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
    • method_43441

      public void method_43441(BufferBuilder.DrawArrayParameters drawArrayParameters, ByteBuffer byteBuffer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxv;a(Ldxn$a;Ljava/nio/ByteBuffer;)V
      intermediary method_43441 Lnet/minecraft/class_291;method_43441(Lnet/minecraft/class_287$class_4574;Ljava/nio/ByteBuffer;)V
      named method_43441 Lnet/minecraft/client/gl/VertexBuffer;method_43441(Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;Ljava/nio/ByteBuffer;)V
    • method_43442

      private VertexFormat method_43442(BufferBuilder.DrawArrayParameters drawArrayParameters, ByteBuffer byteBuffer)
      Mappings:
      Namespace Name Mixin selector
      official b Ldxv;b(Ldxn$a;Ljava/nio/ByteBuffer;)Ldxx;
      intermediary method_43442 Lnet/minecraft/class_291;method_43442(Lnet/minecraft/class_287$class_4574;Ljava/nio/ByteBuffer;)Lnet/minecraft/class_293;
      named method_43442 Lnet/minecraft/client/gl/VertexBuffer;method_43442(Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;Ljava/nio/ByteBuffer;)Lnet/minecraft/client/render/VertexFormat;
    • method_43443

      @Nullable private RenderSystem.IndexBuffer method_43443(BufferBuilder.DrawArrayParameters drawArrayParameters, ByteBuffer byteBuffer)
      Mappings:
      Namespace Name Mixin selector
      official c Ldxv;c(Ldxn$a;Ljava/nio/ByteBuffer;)Lcom/mojang/blaze3d/systems/RenderSystem$a;
      intermediary method_43443 Lnet/minecraft/class_291;method_43443(Lnet/minecraft/class_287$class_4574;Ljava/nio/ByteBuffer;)Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;
      named method_43443 Lnet/minecraft/client/gl/VertexBuffer;method_43443(Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;Ljava/nio/ByteBuffer;)Lcom/mojang/blaze3d/systems/RenderSystem$IndexBuffer;
    • bind

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

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

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

      private VertexFormat.IntType method_43445()
      Mappings:
      Namespace Name Mixin selector
      official f Ldxv;f()Ldxx$a;
      intermediary method_43445 Lnet/minecraft/class_291;method_43445()Lnet/minecraft/class_293$class_5595;
      named method_43445 Lnet/minecraft/client/gl/VertexBuffer;method_43445()Lnet/minecraft/client/render/VertexFormat$IntType;
    • setShader

      public void setShader(Matrix4f viewMatrix, Matrix4f projectionMatrix, Shader shader)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxv;a(Ld;Ld;Levy;)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

      private void innerSetShader(Matrix4f viewMatrix, Matrix4f projectionMatrix, Shader shader)
      Mappings:
      Namespace Name Mixin selector
      official b Ldxv;b(Ld;Ld;Levy;)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
    • close

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

      public VertexFormat getVertexFormat()
      Mappings:
      Namespace Name Mixin selector
      official d Ldxv;d()Ldxx;
      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;
    • method_43444

      public boolean method_43444()
      Mappings:
      Namespace Name Mixin selector
      official e Ldxv;e()Z
      intermediary method_43444 Lnet/minecraft/class_291;method_43444()Z
      named method_43444 Lnet/minecraft/client/gl/VertexBuffer;method_43444()Z