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 named net/minecraft/client/render/VertexFormatElementintermediary net/minecraft/class_296official fag
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents a type of components in an element.static enumDescribes how the components should be interpreted. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe total length of this element (in bytes).private final intprivate final VertexFormatElement.ComponentTypeprivate final VertexFormatElement.Typeprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionVertexFormatElement(int uvIndex, VertexFormatElement.ComponentType componentType, VertexFormatElement.Type type, int componentCount) -
Method Summary
Modifier 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 named componentTypeLnet/minecraft/client/render/VertexFormatElement;componentType:Lnet/minecraft/client/render/VertexFormatElement$ComponentType;intermediary field_1615Lnet/minecraft/class_296;field_1615:Lnet/minecraft/class_296$class_297;official aLfag;a:Lfag$a;
-
type
- Mappings:
Namespace Name Mixin selector named typeLnet/minecraft/client/render/VertexFormatElement;type:Lnet/minecraft/client/render/VertexFormatElement$Type;intermediary field_1614Lnet/minecraft/class_296;field_1614:Lnet/minecraft/class_296$class_298;official bLfag;b:Lfag$b;
-
uvIndex
private final int uvIndex- Mappings:
Namespace Name Mixin selector named uvIndexLnet/minecraft/client/render/VertexFormatElement;uvIndex:Iintermediary field_1613Lnet/minecraft/class_296;field_1613:Iofficial cLfag;c:I
-
componentCount
private final int componentCount- Mappings:
Namespace Name Mixin selector named componentCountLnet/minecraft/client/render/VertexFormatElement;componentCount:Iintermediary field_1612Lnet/minecraft/class_296;field_1612:Iofficial dLfag;d:I
-
byteLength
private final int byteLengthThe total length of this element (in bytes).- Mappings:
Namespace Name Mixin selector named byteLengthLnet/minecraft/client/render/VertexFormatElement;byteLength:Iintermediary field_21329Lnet/minecraft/class_296;field_21329:Iofficial eLfag;e:I
-
-
Constructor Details
-
VertexFormatElement
public VertexFormatElement(int uvIndex, VertexFormatElement.ComponentType componentType, VertexFormatElement.Type type, int componentCount) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/VertexFormatElement;<init>(ILnet/minecraft/client/render/VertexFormatElement$ComponentType;Lnet/minecraft/client/render/VertexFormatElement$Type;I)Vintermediary <init>Lnet/minecraft/class_296;<init>(ILnet/minecraft/class_296$class_297;Lnet/minecraft/class_296$class_298;I)Vofficial <init>Lfag;<init>(ILfag$a;Lfag$b;I)V
-
-
Method Details
-
isValidType
- Mappings:
Namespace Name Mixin selector named isValidTypeLnet/minecraft/client/render/VertexFormatElement;isValidType(ILnet/minecraft/client/render/VertexFormatElement$Type;)Zintermediary method_1383Lnet/minecraft/class_296;method_1383(ILnet/minecraft/class_296$class_298;)Zofficial aLfag;a(ILfag$b;)Z
-
getComponentType
- Mappings:
Namespace Name Mixin selector named getComponentTypeLnet/minecraft/client/render/VertexFormatElement;getComponentType()Lnet/minecraft/client/render/VertexFormatElement$ComponentType;intermediary method_1386Lnet/minecraft/class_296;method_1386()Lnet/minecraft/class_296$class_297;official aLfag;a()Lfag$a;
-
getType
- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/client/render/VertexFormatElement;getType()Lnet/minecraft/client/render/VertexFormatElement$Type;intermediary method_1382Lnet/minecraft/class_296;method_1382()Lnet/minecraft/class_296$class_298;official bLfag;b()Lfag$b;
-
getComponentCount
public final int getComponentCount()- Mappings:
Namespace Name Mixin selector named getComponentCountLnet/minecraft/client/render/VertexFormatElement;getComponentCount()Iintermediary method_34451Lnet/minecraft/class_296;method_34451()Iofficial cLfag;c()I
-
getUvIndex
public final int getUvIndex()- Mappings:
Namespace Name Mixin selector named getUvIndexLnet/minecraft/client/render/VertexFormatElement;getUvIndex()Iintermediary method_1385Lnet/minecraft/class_296;method_1385()Iofficial dLfag;d()I
-
toString
-
getByteLength
public final int getByteLength()- Mappings:
Namespace Name Mixin selector named getByteLengthLnet/minecraft/client/render/VertexFormatElement;getByteLength()Iintermediary method_1387Lnet/minecraft/class_296;method_1387()Iofficial eLfag;e()I
-
isPosition
public final boolean isPosition()- Mappings:
Namespace Name Mixin selector named isPositionLnet/minecraft/client/render/VertexFormatElement;isPosition()Zintermediary method_35667Lnet/minecraft/class_296;method_35667()Zofficial fLfag;f()Z
-
equals
-
hashCode
public int hashCode() -
setupState
public 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 formatoffset- the distance between the start of the buffer and the first instance of the element in the bufferstride- the distance between consecutive instances of the element in the buffer- Mappings:
Namespace Name Mixin selector named setupStateLnet/minecraft/client/render/VertexFormatElement;setupState(IJI)Vintermediary method_22652Lnet/minecraft/class_296;method_22652(IJI)Vofficial aLfag;a(IJI)V
-
clearState
public void clearState(int elementIndex) - Mappings:
Namespace Name Mixin selector named clearStateLnet/minecraft/client/render/VertexFormatElement;clearState(I)Vintermediary method_22653Lnet/minecraft/class_296;method_22653(I)Vofficial aLfag;a(I)V
-