Package net.minecraft.client.gl
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 Summary
Fields Modifier and Type Field Description private VertexFormat.IntType
field_27367
private VertexFormat.DrawMode
field_27368
private boolean
field_27369
private int
indexBufferId
private int
vertexBufferId
private int
vertexCount
-
Constructor Summary
Constructors Constructor Description VertexBuffer()
-
Method Summary
Modifier and Type Method Description void
bind()
void
close()
void
draw(Matrix4f matrix)
CompletableFuture<Void>
submitUpload(BufferBuilder buffer)
static void
unbind()
void
upload(BufferBuilder buffer)
private void
uploadInternal(BufferBuilder buffer)
-
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
- 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
- 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
- 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
- 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
- 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
- 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 interfaceAutoCloseable
- 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
-