Package net.minecraft.client.render
Class VertexFormat
java.lang.Object
net.minecraft.client.render.VertexFormat
Defines what 
elements a vertex has.- Mappings:
- Namespace - Name - named - net/minecraft/client/render/VertexFormat- intermediary - net/minecraft/class_293- official - fga
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic enum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate @Nullable VertexBufferprivate final List<VertexFormatElement> static final intprivate final int[]private final intprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionVertexFormat(List<VertexFormatElement> elements, List<String> names, IntList offsets, int vertexSizeByte) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidbindAttributes(int program) static VertexFormat.Builderbuilder()voidbooleanReturns a vertex buffer shared with the users of this vertex format.getName(VertexFormatElement element) intgetOffset(VertexFormatElement element) int[]intintbooleanhas(VertexFormatElement element) inthashCode()voidSpecifies for OpenGL how the vertex data should be interpreted.toString()
- 
Field Details- 
field_52099public static final int field_52099- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_52099- Lnet/minecraft/client/render/VertexFormat;field_52099:I- intermediary - field_52099- Lnet/minecraft/class_293;field_52099:I- official - a- Lfga;a:I
 
- 
elements- Mappings:
- Namespace - Name - Mixin selector - named - elements- Lnet/minecraft/client/render/VertexFormat;elements:Ljava/util/List;- intermediary - field_1602- Lnet/minecraft/class_293;field_1602:Ljava/util/List;- official - b- Lfga;b:Ljava/util/List;
 
- 
names- Mappings:
- Namespace - Name - Mixin selector - named - names- Lnet/minecraft/client/render/VertexFormat;names:Ljava/util/List;- intermediary - field_52100- Lnet/minecraft/class_293;field_52100:Ljava/util/List;- official - c- Lfga;c:Ljava/util/List;
 
- 
vertexSizeByteprivate final int vertexSizeByte- Mappings:
- Namespace - Name - Mixin selector - named - vertexSizeByte- Lnet/minecraft/client/render/VertexFormat;vertexSizeByte:I- intermediary - field_1600- Lnet/minecraft/class_293;field_1600:I- official - d- Lfga;d:I
 
- 
requiredMaskprivate final int requiredMask- Mappings:
- Namespace - Name - Mixin selector - named - requiredMask- Lnet/minecraft/client/render/VertexFormat;requiredMask:I- intermediary - field_52101- Lnet/minecraft/class_293;field_52101:I- official - e- Lfga;e:I
 
- 
offsetsByElementIdprivate final int[] offsetsByElementId- Mappings:
- Namespace - Name - Mixin selector - named - offsetsByElementId- Lnet/minecraft/client/render/VertexFormat;offsetsByElementId:[I- intermediary - field_52102- Lnet/minecraft/class_293;field_52102:[I- official - f- Lfga;f:[I
 
- 
buffer- Mappings:
- Namespace - Name - Mixin selector - named - buffer- Lnet/minecraft/client/render/VertexFormat;buffer:Lnet/minecraft/client/gl/VertexBuffer;- intermediary - field_38984- Lnet/minecraft/class_293;field_38984:Lnet/minecraft/class_291;- official - g- Lfga;g:Lffy;
 
 
- 
- 
Constructor Details- 
VertexFormatVertexFormat(List<VertexFormatElement> elements, List<String> names, IntList offsets, int vertexSizeByte) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/render/VertexFormat;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V- intermediary - <init>- Lnet/minecraft/class_293;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V- official - <init>- Lfga;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V
 
 
- 
- 
Method Details- 
builder- Mappings:
- Namespace - Name - Mixin selector - named - builder- Lnet/minecraft/client/render/VertexFormat;builder()Lnet/minecraft/client/render/VertexFormat$Builder;- intermediary - method_60833- Lnet/minecraft/class_293;method_60833()Lnet/minecraft/class_293$class_9803;- official - a- Lfga;a()Lfga$a;
 
- 
bindAttributespublic void bindAttributes(int program) - Mappings:
- Namespace - Name - Mixin selector - named - bindAttributes- Lnet/minecraft/client/render/VertexFormat;bindAttributes(I)V- intermediary - method_62886- Lnet/minecraft/class_293;method_62886(I)V- official - a- Lfga;a(I)V
 
- 
toString
- 
getVertexSizeBytepublic int getVertexSizeByte()- Mappings:
- Namespace - Name - Mixin selector - named - getVertexSizeByte- Lnet/minecraft/client/render/VertexFormat;getVertexSizeByte()I- intermediary - method_1362- Lnet/minecraft/class_293;method_1362()I- official - b- Lfga;b()I
 
- 
getElements- Mappings:
- Namespace - Name - Mixin selector - named - getElements- Lnet/minecraft/client/render/VertexFormat;getElements()Ljava/util/List;- intermediary - method_1357- Lnet/minecraft/class_293;method_1357()Ljava/util/List;- official - c- Lfga;c()Ljava/util/List;
 
- 
getAttributeNames- Mappings:
- Namespace - Name - Mixin selector - named - getAttributeNames- Lnet/minecraft/client/render/VertexFormat;getAttributeNames()Ljava/util/List;- intermediary - method_34445- Lnet/minecraft/class_293;method_34445()Ljava/util/List;- official - d- Lfga;d()Ljava/util/List;
 
- 
getOffsetsByElementIdpublic int[] getOffsetsByElementId()- Mappings:
- Namespace - Name - Mixin selector - named - getOffsetsByElementId- Lnet/minecraft/client/render/VertexFormat;getOffsetsByElementId()[I- intermediary - method_60838- Lnet/minecraft/class_293;method_60838()[I- official - e- Lfga;e()[I
 
- 
getOffset- Mappings:
- Namespace - Name - Mixin selector - named - getOffset- Lnet/minecraft/client/render/VertexFormat;getOffset(Lnet/minecraft/client/render/VertexFormatElement;)I- intermediary - method_60835- Lnet/minecraft/class_293;method_60835(Lnet/minecraft/class_296;)I- official - a- Lfga;a(Lfgb;)I
 
- 
has- Mappings:
- Namespace - Name - Mixin selector - named - has- Lnet/minecraft/client/render/VertexFormat;has(Lnet/minecraft/client/render/VertexFormatElement;)Z- intermediary - method_60836- Lnet/minecraft/class_293;method_60836(Lnet/minecraft/class_296;)Z- official - b- Lfga;b(Lfgb;)Z
 
- 
getRequiredMaskpublic int getRequiredMask()- Mappings:
- Namespace - Name - Mixin selector - named - getRequiredMask- Lnet/minecraft/client/render/VertexFormat;getRequiredMask()I- intermediary - method_60839- Lnet/minecraft/class_293;method_60839()I- official - f- Lfga;f()I
 
- 
getName- Mappings:
- Namespace - Name - Mixin selector - named - getName- Lnet/minecraft/client/render/VertexFormat;getName(Lnet/minecraft/client/render/VertexFormatElement;)Ljava/lang/String;- intermediary - method_60837- Lnet/minecraft/class_293;method_60837(Lnet/minecraft/class_296;)Ljava/lang/String;- official - c- Lfga;c(Lfgb;)Ljava/lang/String;
 
- 
equals
- 
hashCodepublic int hashCode()
- 
setupStatepublic void setupState()Specifies for OpenGL how the vertex data should be interpreted.- Mappings:
- Namespace - Name - Mixin selector - named - setupState- Lnet/minecraft/client/render/VertexFormat;setupState()V- intermediary - method_22649- Lnet/minecraft/class_293;method_22649()V- official - g- Lfga;g()V
 
- 
clearStatepublic void clearState()- Mappings:
- Namespace - Name - Mixin selector - named - clearState- Lnet/minecraft/client/render/VertexFormat;clearState()V- intermediary - method_22651- Lnet/minecraft/class_293;method_22651()V- official - h- Lfga;h()V
 
- 
getBufferReturns a vertex buffer shared with the users of this vertex format.The data uploaded to the returned vertex buffer cannot be reused as it can be overwritten by other users of this method. - Returns:
- a vertex buffer shared with the users of this vertex format
- Mappings:
- Namespace - Name - Mixin selector - named - getBuffer- Lnet/minecraft/client/render/VertexFormat;getBuffer()Lnet/minecraft/client/gl/VertexBuffer;- intermediary - method_43446- Lnet/minecraft/class_293;method_43446()Lnet/minecraft/class_291;- official - i- Lfga;i()Lffy;
 
 
-