Class VertexFormatElement

java.lang.Object
net.minecraft.client.render.VertexFormatElement

@Environment(CLIENT) public class VertexFormatElement extends Object
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
  • Field Details

    • dataType

      private final VertexFormatElement.DataType 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

      private final VertexFormatElement.Type 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 byteLength
      The 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

      private boolean isValidType(int index, VertexFormatElement.Type type)
      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

      public final VertexFormatElement.DataType 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

      public final VertexFormatElement.Type 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

      public String toString()
      Overrides:
      toString in class Object
    • 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Ldts;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_296;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/client/render/VertexFormatElement;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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