Class VertexBuffer
- java.lang.Object
-
- net.minecraft.client.renderer.vertex.VertexBuffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class VertexBuffer extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private VertexFormatformatprivate intidprivate intvertexCount
-
Constructor Summary
Constructors Constructor Description VertexBuffer(VertexFormat p_i46098_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind()voidclose()voiddraw(Matrix4f p_227874_1_, int p_227874_2_)static voidunbind()voidupload(BufferBuilder p_227875_1_)private voidupload_(BufferBuilder p_227880_1_)java.util.concurrent.CompletableFuture<java.lang.Void>uploadLater(BufferBuilder p_227878_1_)
-
-
-
Field Detail
-
id
private int id
-
format
private final VertexFormat format
-
vertexCount
private int vertexCount
-
-
Constructor Detail
-
VertexBuffer
public VertexBuffer(VertexFormat p_i46098_1_)
-
-
Method Detail
-
bind
public void bind()
-
upload
public void upload(BufferBuilder p_227875_1_)
-
uploadLater
public java.util.concurrent.CompletableFuture<java.lang.Void> uploadLater(BufferBuilder p_227878_1_)
-
upload_
private void upload_(BufferBuilder p_227880_1_)
-
draw
public void draw(Matrix4f p_227874_1_, int p_227874_2_)
-
unbind
public static void unbind()
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-