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 data type, a field length, and the corresponding GL element type to which this field corresponds.
- Mappings:
Namespace Name official dqqintermediary net/minecraft/class_296named net/minecraft/client/render/VertexFormatElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe total length of this element (in bytes).private VertexFormatElement.DataTypeprivate intprivate intprivate VertexFormatElement.Type -
Constructor Summary
ConstructorsConstructorDescriptionVertexFormatElement(int textureIndex, VertexFormatElement.DataType dataType, VertexFormatElement.Type type, int length) -
Method Summary
Modifier and TypeMethodDescriptionvoidendDrawing(int elementIndex)booleanintintintgetType()inthashCode()booleanprivate booleanisValidType(int index, VertexFormatElement.Type type)voidstartDrawing(int elementIndex, long pointer, int stride)toString()
-
Field Details
-
dataType
- Mappings:
Namespace Name Mixin selector official aLdqq;a:Ldqq$a;intermediary field_1615Lnet/minecraft/class_296;field_1615:Lnet/minecraft/class_296$class_297;named dataTypeLnet/minecraft/client/render/VertexFormatElement;dataType:Lnet/minecraft/client/render/VertexFormatElement$DataType;
-
type
- Mappings:
Namespace Name Mixin selector official bLdqq;b:Ldqq$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;
-
textureIndex
private final int textureIndex- Mappings:
Namespace Name Mixin selector official cLdqq;c:Iintermediary field_1613Lnet/minecraft/class_296;field_1613:Inamed textureIndexLnet/minecraft/client/render/VertexFormatElement;textureIndex:I
-
length
private final int length- Mappings:
Namespace Name Mixin selector official dLdqq;d:Iintermediary field_1612Lnet/minecraft/class_296;field_1612:Inamed lengthLnet/minecraft/client/render/VertexFormatElement;length:I
-
byteLength
private final int byteLengthThe total length of this element (in bytes).- Mappings:
Namespace Name Mixin selector official eLdqq;e:Iintermediary field_21329Lnet/minecraft/class_296;field_21329:Inamed byteLengthLnet/minecraft/client/render/VertexFormatElement;byteLength:I
-
-
Constructor Details
-
VertexFormatElement
public VertexFormatElement(int textureIndex, VertexFormatElement.DataType dataType, VertexFormatElement.Type type, int length)- Mappings:
Namespace Name Mixin selector official <init>Ldqq;<init>(ILdqq$a;Ldqq$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$DataType;Lnet/minecraft/client/render/VertexFormatElement$Type;I)V
-
-
Method Details
-
isValidType
- Mappings:
Namespace Name Mixin selector official aLdqq;a(ILdqq$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
-
getDataType
- Mappings:
Namespace Name Mixin selector official aLdqq;a()Ldqq$a;intermediary method_1386Lnet/minecraft/class_296;method_1386()Lnet/minecraft/class_296$class_297;named getDataTypeLnet/minecraft/client/render/VertexFormatElement;getDataType()Lnet/minecraft/client/render/VertexFormatElement$DataType;
-
getType
- Mappings:
Namespace Name Mixin selector official bLdqq;b()Ldqq$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;
-
getLength
public final int getLength()- Mappings:
Namespace Name Mixin selector official cLdqq;c()Iintermediary method_34451Lnet/minecraft/class_296;method_34451()Inamed getLengthLnet/minecraft/client/render/VertexFormatElement;getLength()I
-
getTextureIndex
public final int getTextureIndex()- Mappings:
Namespace Name Mixin selector official dLdqq;d()Iintermediary method_1385Lnet/minecraft/class_296;method_1385()Inamed getTextureIndexLnet/minecraft/client/render/VertexFormatElement;getTextureIndex()I
-
toString
-
getByteLength
public final int getByteLength()- Mappings:
Namespace Name Mixin selector official eLdqq;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 fLdqq;f()Zintermediary method_35667Lnet/minecraft/class_296;method_35667()Znamed isPositionLnet/minecraft/client/render/VertexFormatElement;isPosition()Z
-
equals
-
hashCode
public int hashCode() -
startDrawing
public void startDrawing(int elementIndex, long pointer, int stride)- Mappings:
Namespace Name Mixin selector official aLdqq;a(IJI)Vintermediary method_22652Lnet/minecraft/class_296;method_22652(IJI)Vnamed startDrawingLnet/minecraft/client/render/VertexFormatElement;startDrawing(IJI)V
-
endDrawing
public void endDrawing(int elementIndex)- Mappings:
Namespace Name Mixin selector official aLdqq;a(I)Vintermediary method_22653Lnet/minecraft/class_296;method_22653(I)Vnamed endDrawingLnet/minecraft/client/render/VertexFormatElement;endDrawing(I)V
-