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

    • vertexBufferId

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

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

      private int vertexCount
      Mappings:
      Namespace Name Mixin selector
      official d Ldlu;d:I
      intermediary field_1593 Lnet/minecraft/class_291;field_1593:I
      named vertexCount Lnet/minecraft/client/gl/VertexBuffer;vertexCount:I
    • field_27368

      private VertexFormat.DrawMode field_27368
      Mappings:
      Namespace Name Mixin selector
      official e Ldlu;e:Ldlw$b;
      intermediary field_27368 Lnet/minecraft/class_291;field_27368:Lnet/minecraft/class_293$class_5596;
      named field_27368 Lnet/minecraft/client/gl/VertexBuffer;field_27368:Lnet/minecraft/client/render/VertexFormat$DrawMode;
    • field_27369

      private boolean field_27369
      Mappings:
      Namespace Name Mixin selector
      official f Ldlu;f:Z
      intermediary field_27369 Lnet/minecraft/class_291;field_27369:Z
      named field_27369 Lnet/minecraft/client/gl/VertexBuffer;field_27369:Z
  • Constructor Details

    • VertexBuffer

      public VertexBuffer()
  • Method Details

    • bind

      public void bind()
      Mappings:
      Namespace Name Mixin selector
      official a Ldlu;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 Ldlu;a(Ldlm;)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 Ldlu;b(Ldlm;)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 Ldlu;c(Ldlm;)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
    • draw

      public void draw​(Matrix4f matrix)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlu;a(Lb;)V
      intermediary method_1351 Lnet/minecraft/class_291;method_1351(Lnet/minecraft/class_1159;)V
      named draw Lnet/minecraft/client/gl/VertexBuffer;draw(Lnet/minecraft/util/math/Matrix4f;)V
    • unbind

      public static void unbind()
      Mappings:
      Namespace Name Mixin selector
      official b Ldlu;b()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
      Mappings:
      Namespace Name Mixin selector
      official close Ldlu;close()V
      intermediary close Lnet/minecraft/class_291;close()V
      named close Lnet/minecraft/client/gl/VertexBuffer;close()V