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 eihintermediary net/minecraft/class_296named net/minecraft/client/render/VertexFormatElement
-
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 official aLeih;a:Leih$a;intermediary field_1615Lnet/minecraft/class_296;field_1615:Lnet/minecraft/class_296$class_297;named componentTypeLnet/minecraft/client/render/VertexFormatElement;componentType:Lnet/minecraft/client/render/VertexFormatElement$ComponentType;
-
type
- Mappings:
Namespace Name Mixin selector official bLeih;b:Leih$b;intermediary field_1614Lnet/minecraft/class_296;field_1614:Lnet/minecraft/class_296$class_298;named typeLnet/minecraft/client/render/VertexFormatElement;type:Lnet/minecraft/client/render/VertexFormatElement$Type;
-
uvIndex
private final int uvIndex- Mappings:
Namespace Name Mixin selector official cLeih;c:Iintermediary field_1613Lnet/minecraft/class_296;field_1613:Inamed uvIndexLnet/minecraft/client/render/VertexFormatElement;uvIndex:I
-
componentCount
private final int componentCount- Mappings:
Namespace Name Mixin selector official dLeih;d:Iintermediary field_1612Lnet/minecraft/class_296;field_1612:Inamed componentCountLnet/minecraft/client/render/VertexFormatElement;componentCount:I
-
byteLength
private final int byteLengthThe total length of this element (in bytes).- Mappings:
Namespace Name Mixin selector official eLeih;e:Iintermediary field_21329Lnet/minecraft/class_296;field_21329:Inamed byteLengthLnet/minecraft/client/render/VertexFormatElement;byteLength:I
-
-
Constructor Details
-
VertexFormatElement
public VertexFormatElement(int uvIndex, VertexFormatElement.ComponentType componentType, VertexFormatElement.Type type, int componentCount) - Mappings:
Namespace Name Mixin selector official <init>Leih;<init>(ILeih$a;Leih$b;I)Vintermediary <init>Lnet/minecraft/class_296;<init>(ILnet/minecraft/class_296$class_297;Lnet/minecraft/class_296$class_298;I)Vnamed <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 aLeih;a(ILeih$b;)Zintermediary method_1383Lnet/minecraft/class_296;method_1383(ILnet/minecraft/class_296$class_298;)Znamed isValidTypeLnet/minecraft/client/render/VertexFormatElement;isValidType(ILnet/minecraft/client/render/VertexFormatElement$Type;)Z
-
getComponentType
- Mappings:
Namespace Name Mixin selector official aLeih;a()Leih$a;intermediary method_1386Lnet/minecraft/class_296;method_1386()Lnet/minecraft/class_296$class_297;named getComponentTypeLnet/minecraft/client/render/VertexFormatElement;getComponentType()Lnet/minecraft/client/render/VertexFormatElement$ComponentType;
-
getType
- Mappings:
Namespace Name Mixin selector official bLeih;b()Leih$b;intermediary method_1382Lnet/minecraft/class_296;method_1382()Lnet/minecraft/class_296$class_298;named getTypeLnet/minecraft/client/render/VertexFormatElement;getType()Lnet/minecraft/client/render/VertexFormatElement$Type;
-
getComponentCount
public final int getComponentCount()- Mappings:
Namespace Name Mixin selector official cLeih;c()Iintermediary method_34451Lnet/minecraft/class_296;method_34451()Inamed getComponentCountLnet/minecraft/client/render/VertexFormatElement;getComponentCount()I
-
getUvIndex
public final int getUvIndex()- Mappings:
Namespace Name Mixin selector official dLeih;d()Iintermediary method_1385Lnet/minecraft/class_296;method_1385()Inamed getUvIndexLnet/minecraft/client/render/VertexFormatElement;getUvIndex()I
-
toString
-
getByteLength
public final int getByteLength()- Mappings:
Namespace Name Mixin selector official eLeih;e()Iintermediary method_1387Lnet/minecraft/class_296;method_1387()Inamed getByteLengthLnet/minecraft/client/render/VertexFormatElement;getByteLength()I
-
isPosition
public final boolean isPosition()- Mappings:
Namespace Name Mixin selector official fLeih;f()Zintermediary method_35667Lnet/minecraft/class_296;method_35667()Znamed isPositionLnet/minecraft/client/render/VertexFormatElement;isPosition()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 official aLeih;a(IJI)Vintermediary method_22652Lnet/minecraft/class_296;method_22652(IJI)Vnamed setupStateLnet/minecraft/client/render/VertexFormatElement;setupState(IJI)V
-
clearState
public void clearState(int elementIndex) - Mappings:
Namespace Name Mixin selector official aLeih;a(I)Vintermediary method_22653Lnet/minecraft/class_296;method_22653(I)Vnamed clearStateLnet/minecraft/client/render/VertexFormatElement;clearState(I)V
-