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

    • vertexBufferId

      private int vertexBufferId
      Mappings:
      Namespace Name Mixin selector
      official a Ldzv;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 Ldzv;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 Ldzv;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 Ldzv;d:Ldzx;
      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;
    • indexBuffer

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

      private VertexFormat.IndexType indexType
      Mappings:
      Namespace Name Mixin selector
      official f Ldzv;f:Ldzx$a;
      intermediary field_27367 Lnet/minecraft/class_291;field_27367:Lnet/minecraft/class_293$class_5595;
      named indexType Lnet/minecraft/client/gl/VertexBuffer;indexType:Lnet/minecraft/client/render/VertexFormat$IndexType;
    • vertexCount

      private int vertexCount
      Mappings:
      Namespace Name Mixin selector
      official g Ldzv;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 Ldzv;h:Ldzx$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

    • upload

      public void upload(BufferBuilder.BuiltBuffer buffer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzv;a(Ldzn$b;)V
      intermediary method_1352 Lnet/minecraft/class_291;method_1352(Lnet/minecraft/class_287$class_7433;)V
      named upload Lnet/minecraft/client/gl/VertexBuffer;upload(Lnet/minecraft/client/render/BufferBuilder$BuiltBuffer;)V
    • configureVertexFormat

      private VertexFormat configureVertexFormat(BufferBuilder.DrawArrayParameters parameters, ByteBuffer data)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzv;a(Ldzn$a;Ljava/nio/ByteBuffer;)Ldzx;
      intermediary method_43442 Lnet/minecraft/class_291;method_43442(Lnet/minecraft/class_287$class_4574;Ljava/nio/ByteBuffer;)Lnet/minecraft/class_293;
      named configureVertexFormat Lnet/minecraft/client/gl/VertexBuffer;configureVertexFormat(Lnet/minecraft/client/render/BufferBuilder$DrawArrayParameters;Ljava/nio/ByteBuffer;)Lnet/minecraft/client/render/VertexFormat;
    • configureIndexBuffer

      @Nullable private RenderSystem.IndexBuffer configureIndexBuffer(BufferBuilder.DrawArrayParameters parameters, ByteBuffer data)
      Mappings:
      Namespace Name Mixin selector
      official b Ldzv;b(Ldzn$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 configureIndexBuffer Lnet/minecraft/client/gl/VertexBuffer;configureIndexBuffer(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 Ldzv;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 Ldzv;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 Ldzv;c()V
      intermediary method_35665 Lnet/minecraft/class_291;method_35665()V
      named drawElements Lnet/minecraft/client/gl/VertexBuffer;drawElements()V
    • getIndexType

      private VertexFormat.IndexType getIndexType()
      Mappings:
      Namespace Name Mixin selector
      official f Ldzv;f()Ldzx$a;
      intermediary method_43445 Lnet/minecraft/class_291;method_43445()Lnet/minecraft/class_293$class_5595;
      named getIndexType Lnet/minecraft/client/gl/VertexBuffer;getIndexType()Lnet/minecraft/client/render/VertexFormat$IndexType;
    • draw

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

      private void drawInternal(Matrix4f viewMatrix, Matrix4f projectionMatrix, Shader shader)
      Mappings:
      Namespace Name Mixin selector
      official b Ldzv;b(Ld;Ld;Leye;)V
      intermediary method_34431 Lnet/minecraft/class_291;method_34431(Lnet/minecraft/class_1159;Lnet/minecraft/class_1159;Lnet/minecraft/class_5944;)V
      named drawInternal Lnet/minecraft/client/gl/VertexBuffer;drawInternal(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 Ldzv;d()Ldzx;
      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;
    • isClosed

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