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 dts
intermediary net/minecraft/class_296
named net/minecraft/client/render/VertexFormatElement
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The total length of this element (in bytes).private final VertexFormatElement.DataType
private final int
private final int
private final VertexFormatElement.Type
-
Constructor Summary
ConstructorDescriptionVertexFormatElement
(int textureIndex, VertexFormatElement.DataType dataType, VertexFormatElement.Type type, int length) -
Method Summary
Modifier and TypeMethodDescriptionvoid
endDrawing
(int elementIndex) boolean
final int
final int
final int
final VertexFormatElement.Type
getType()
int
hashCode()
final boolean
private boolean
isValidType
(int index, VertexFormatElement.Type type) void
startDrawing
(int elementIndex, long pointer, int stride) toString()
-
Field Details
-
dataType
- Mappings:
Namespace Name Mixin selector official a
Ldts;a:Ldts$a;
intermediary field_1615
Lnet/minecraft/class_296;field_1615:Lnet/minecraft/class_296$class_297;
named dataType
Lnet/minecraft/client/render/VertexFormatElement;dataType:Lnet/minecraft/client/render/VertexFormatElement$DataType;
-
type
- Mappings:
Namespace Name Mixin selector official b
Ldts;b:Ldts$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;
-
textureIndex
private final int textureIndex- Mappings:
Namespace Name Mixin selector official c
Ldts;c:I
intermediary field_1613
Lnet/minecraft/class_296;field_1613:I
named textureIndex
Lnet/minecraft/client/render/VertexFormatElement;textureIndex:I
-
length
private final int length- Mappings:
Namespace Name Mixin selector official d
Ldts;d:I
intermediary field_1612
Lnet/minecraft/class_296;field_1612:I
named length
Lnet/minecraft/client/render/VertexFormatElement;length:I
-
byteLength
private final int byteLengthThe total length of this element (in bytes).- Mappings:
Namespace Name Mixin selector official e
Ldts;e:I
intermediary field_21329
Lnet/minecraft/class_296;field_21329:I
named byteLength
Lnet/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>
Ldts;<init>(ILdts$a;Ldts$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$DataType;Lnet/minecraft/client/render/VertexFormatElement$Type;I)V
-
-
Method Details
-
isValidType
- Mappings:
Namespace Name Mixin selector official a
Ldts;a(ILdts$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
-
getDataType
- Mappings:
Namespace Name Mixin selector official a
Ldts;a()Ldts$a;
intermediary method_1386
Lnet/minecraft/class_296;method_1386()Lnet/minecraft/class_296$class_297;
named getDataType
Lnet/minecraft/client/render/VertexFormatElement;getDataType()Lnet/minecraft/client/render/VertexFormatElement$DataType;
-
getType
- Mappings:
Namespace Name Mixin selector official b
Ldts;b()Ldts$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;
-
getLength
public final int getLength()- Mappings:
Namespace Name Mixin selector official c
Ldts;c()I
intermediary method_34451
Lnet/minecraft/class_296;method_34451()I
named getLength
Lnet/minecraft/client/render/VertexFormatElement;getLength()I
-
getTextureIndex
public final int getTextureIndex()- Mappings:
Namespace Name Mixin selector official d
Ldts;d()I
intermediary method_1385
Lnet/minecraft/class_296;method_1385()I
named getTextureIndex
Lnet/minecraft/client/render/VertexFormatElement;getTextureIndex()I
-
toString
-
getByteLength
public final int getByteLength()- Mappings:
Namespace Name Mixin selector official e
Ldts;e()I
intermediary method_1387
Lnet/minecraft/class_296;method_1387()I
named getByteLength
Lnet/minecraft/client/render/VertexFormatElement;getByteLength()I
-
isPosition
public final boolean isPosition()- Mappings:
Namespace Name Mixin selector official f
Ldts;f()Z
intermediary method_35667
Lnet/minecraft/class_296;method_35667()Z
named isPosition
Lnet/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 a
Ldts;a(IJI)V
intermediary method_22652
Lnet/minecraft/class_296;method_22652(IJI)V
named startDrawing
Lnet/minecraft/client/render/VertexFormatElement;startDrawing(IJI)V
-
endDrawing
public void endDrawing(int elementIndex) - Mappings:
Namespace Name Mixin selector official a
Ldts;a(I)V
intermediary method_22653
Lnet/minecraft/class_296;method_22653(I)V
named endDrawing
Lnet/minecraft/client/render/VertexFormatElement;endDrawing(I)V
-