Package net.minecraft.client.render
Class VertexFormatElement
java.lang.Object
net.minecraft.client.render.VertexFormatElement
Represents a singular field within a larger 
vertex format.
 This element comprises a component type, the number of components, and a type that describes how the components should be interpreted.
- Mappings:
- Namespace - Name - official - eaw- intermediary - net/minecraft/class_296- named - net/minecraft/client/render/VertexFormatElement
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumRepresents a type of components in an element.static enumDescribes how the components should be interpreted.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intThe total length of this element (in bytes).private final intprivate final VertexFormatElement.ComponentTypeprivate final VertexFormatElement.Typeprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionVertexFormatElement(int uvIndex, VertexFormatElement.ComponentType componentType, VertexFormatElement.Type type, int componentCount) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclearState(int elementIndex) booleanfinal intfinal intfinal VertexFormatElement.TypegetType()final intinthashCode()final booleanprivate booleanisValidType(int uvIndex, VertexFormatElement.Type type) voidsetupState(int elementIndex, long offset, int stride) Specifies for OpenGL how the vertex data corresponding to this element should be interpreted.toString()
- 
Field Details- 
componentType- Mappings:
- Namespace - Name - Mixin selector - official - a- Leaw;a:Leaw$a;- intermediary - field_1615- Lnet/minecraft/class_296;field_1615:Lnet/minecraft/class_296$class_297;- named - componentType- Lnet/minecraft/client/render/VertexFormatElement;componentType:Lnet/minecraft/client/render/VertexFormatElement$ComponentType;
 
- 
type- Mappings:
- Namespace - Name - Mixin selector - official - b- Leaw;b:Leaw$b;- intermediary - field_1614- Lnet/minecraft/class_296;field_1614:Lnet/minecraft/class_296$class_298;- named - type- Lnet/minecraft/client/render/VertexFormatElement;type:Lnet/minecraft/client/render/VertexFormatElement$Type;
 
- 
uvIndexprivate final int uvIndex- Mappings:
- Namespace - Name - Mixin selector - official - c- Leaw;c:I- intermediary - field_1613- Lnet/minecraft/class_296;field_1613:I- named - uvIndex- Lnet/minecraft/client/render/VertexFormatElement;uvIndex:I
 
- 
componentCountprivate final int componentCount- Mappings:
- Namespace - Name - Mixin selector - official - d- Leaw;d:I- intermediary - field_1612- Lnet/minecraft/class_296;field_1612:I- named - componentCount- Lnet/minecraft/client/render/VertexFormatElement;componentCount:I
 
- 
byteLengthprivate final int byteLengthThe total length of this element (in bytes).- Mappings:
- Namespace - Name - Mixin selector - official - e- Leaw;e:I- intermediary - field_21329- Lnet/minecraft/class_296;field_21329:I- named - byteLength- Lnet/minecraft/client/render/VertexFormatElement;byteLength:I
 
 
- 
- 
Constructor Details- 
VertexFormatElementpublic VertexFormatElement(int uvIndex, VertexFormatElement.ComponentType componentType, VertexFormatElement.Type type, int componentCount) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Leaw;<init>(ILeaw$a;Leaw$b;I)V- intermediary - <init>- Lnet/minecraft/class_296;<init>(ILnet/minecraft/class_296$class_297;Lnet/minecraft/class_296$class_298;I)V- named - <init>- Lnet/minecraft/client/render/VertexFormatElement;<init>(ILnet/minecraft/client/render/VertexFormatElement$ComponentType;Lnet/minecraft/client/render/VertexFormatElement$Type;I)V
 
 
- 
- 
Method Details- 
isValidType- Mappings:
- Namespace - Name - Mixin selector - official - a- Leaw;a(ILeaw$b;)Z- intermediary - method_1383- Lnet/minecraft/class_296;method_1383(ILnet/minecraft/class_296$class_298;)Z- named - isValidType- Lnet/minecraft/client/render/VertexFormatElement;isValidType(ILnet/minecraft/client/render/VertexFormatElement$Type;)Z
 
- 
getComponentType- Mappings:
- Namespace - Name - Mixin selector - official - a- Leaw;a()Leaw$a;- intermediary - method_1386- Lnet/minecraft/class_296;method_1386()Lnet/minecraft/class_296$class_297;- named - getComponentType- Lnet/minecraft/client/render/VertexFormatElement;getComponentType()Lnet/minecraft/client/render/VertexFormatElement$ComponentType;
 
- 
getType- Mappings:
- Namespace - Name - Mixin selector - official - b- Leaw;b()Leaw$b;- intermediary - method_1382- Lnet/minecraft/class_296;method_1382()Lnet/minecraft/class_296$class_298;- named - getType- Lnet/minecraft/client/render/VertexFormatElement;getType()Lnet/minecraft/client/render/VertexFormatElement$Type;
 
- 
getComponentCountpublic final int getComponentCount()- Mappings:
- Namespace - Name - Mixin selector - official - c- Leaw;c()I- intermediary - method_34451- Lnet/minecraft/class_296;method_34451()I- named - getComponentCount- Lnet/minecraft/client/render/VertexFormatElement;getComponentCount()I
 
- 
getUvIndexpublic final int getUvIndex()- Mappings:
- Namespace - Name - Mixin selector - official - d- Leaw;d()I- intermediary - method_1385- Lnet/minecraft/class_296;method_1385()I- named - getUvIndex- Lnet/minecraft/client/render/VertexFormatElement;getUvIndex()I
 
- 
toString
- 
getByteLengthpublic final int getByteLength()- Mappings:
- Namespace - Name - Mixin selector - official - e- Leaw;e()I- intermediary - method_1387- Lnet/minecraft/class_296;method_1387()I- named - getByteLength- Lnet/minecraft/client/render/VertexFormatElement;getByteLength()I
 
- 
isPositionpublic final boolean isPosition()- Mappings:
- Namespace - Name - Mixin selector - official - f- Leaw;f()Z- intermediary - method_35667- Lnet/minecraft/class_296;method_35667()Z- named - isPosition- Lnet/minecraft/client/render/VertexFormatElement;isPosition()Z
 
- 
equals
- 
hashCodepublic int hashCode()
- 
setupStatepublic void setupState(int elementIndex, long offset, int stride) Specifies for OpenGL how the vertex data corresponding to this element should be interpreted.- Parameters:
- elementIndex- the index of the element in a vertex format
- offset- the distance between the start of the buffer and the first instance of the element in the buffer
- stride- the distance between consecutive instances of the element in the buffer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leaw;a(IJI)V- intermediary - method_22652- Lnet/minecraft/class_296;method_22652(IJI)V- named - setupState- Lnet/minecraft/client/render/VertexFormatElement;setupState(IJI)V
 
- 
clearStatepublic void clearState(int elementIndex) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leaw;a(I)V- intermediary - method_22653- Lnet/minecraft/class_296;method_22653(I)V- named - clearState- Lnet/minecraft/client/render/VertexFormatElement;clearState(I)V
 
 
-