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 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/VertexFormatElement
intermediary net/minecraft/class_296
official faf
  • Field Details

    • componentType

      private final VertexFormatElement.ComponentType componentType
      Mappings:
      Namespace Name Mixin selector
      named componentType Lnet/minecraft/client/render/VertexFormatElement;componentType:Lnet/minecraft/client/render/VertexFormatElement$ComponentType;
      intermediary field_1615 Lnet/minecraft/class_296;field_1615:Lnet/minecraft/class_296$class_297;
      official a Lfaf;a:Lfaf$a;
    • type

      private final VertexFormatElement.Type type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/client/render/VertexFormatElement;type:Lnet/minecraft/client/render/VertexFormatElement$Type;
      intermediary field_1614 Lnet/minecraft/class_296;field_1614:Lnet/minecraft/class_296$class_298;
      official b Lfaf;b:Lfaf$b;
    • uvIndex

      private final int uvIndex
      Mappings:
      Namespace Name Mixin selector
      named uvIndex Lnet/minecraft/client/render/VertexFormatElement;uvIndex:I
      intermediary field_1613 Lnet/minecraft/class_296;field_1613:I
      official c Lfaf;c:I
    • componentCount

      private final int componentCount
      Mappings:
      Namespace Name Mixin selector
      named componentCount Lnet/minecraft/client/render/VertexFormatElement;componentCount:I
      intermediary field_1612 Lnet/minecraft/class_296;field_1612:I
      official d Lfaf;d:I
    • byteLength

      private final int byteLength
      The total length of this element (in bytes).
      Mappings:
      Namespace Name Mixin selector
      named byteLength Lnet/minecraft/client/render/VertexFormatElement;byteLength:I
      intermediary field_21329 Lnet/minecraft/class_296;field_21329:I
      official e Lfaf;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)V
      intermediary <init> Lnet/minecraft/class_296;<init>(ILnet/minecraft/class_296$class_297;Lnet/minecraft/class_296$class_298;I)V
      official <init> Lfaf;<init>(ILfaf$a;Lfaf$b;I)V
  • Method Details

    • isValidType

      private boolean isValidType(int uvIndex, VertexFormatElement.Type type)
      Mappings:
      Namespace Name Mixin selector
      named isValidType Lnet/minecraft/client/render/VertexFormatElement;isValidType(ILnet/minecraft/client/render/VertexFormatElement$Type;)Z
      intermediary method_1383 Lnet/minecraft/class_296;method_1383(ILnet/minecraft/class_296$class_298;)Z
      official a Lfaf;a(ILfaf$b;)Z
    • getComponentType

      public final VertexFormatElement.ComponentType getComponentType()
      Mappings:
      Namespace Name Mixin selector
      named getComponentType Lnet/minecraft/client/render/VertexFormatElement;getComponentType()Lnet/minecraft/client/render/VertexFormatElement$ComponentType;
      intermediary method_1386 Lnet/minecraft/class_296;method_1386()Lnet/minecraft/class_296$class_297;
      official a Lfaf;a()Lfaf$a;
    • getType

      public final VertexFormatElement.Type getType()
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/client/render/VertexFormatElement;getType()Lnet/minecraft/client/render/VertexFormatElement$Type;
      intermediary method_1382 Lnet/minecraft/class_296;method_1382()Lnet/minecraft/class_296$class_298;
      official b Lfaf;b()Lfaf$b;
    • getComponentCount

      public final int getComponentCount()
      Mappings:
      Namespace Name Mixin selector
      named getComponentCount Lnet/minecraft/client/render/VertexFormatElement;getComponentCount()I
      intermediary method_34451 Lnet/minecraft/class_296;method_34451()I
      official c Lfaf;c()I
    • getUvIndex

      public final int getUvIndex()
      Mappings:
      Namespace Name Mixin selector
      named getUvIndex Lnet/minecraft/client/render/VertexFormatElement;getUvIndex()I
      intermediary method_1385 Lnet/minecraft/class_296;method_1385()I
      official d Lfaf;d()I
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getByteLength

      public final int getByteLength()
      Mappings:
      Namespace Name Mixin selector
      named getByteLength Lnet/minecraft/client/render/VertexFormatElement;getByteLength()I
      intermediary method_1387 Lnet/minecraft/class_296;method_1387()I
      official e Lfaf;e()I
    • isPosition

      public final boolean isPosition()
      Mappings:
      Namespace Name Mixin selector
      named isPosition Lnet/minecraft/client/render/VertexFormatElement;isPosition()Z
      intermediary method_35667 Lnet/minecraft/class_296;method_35667()Z
      official f Lfaf;f()Z
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 format
      offset - the distance between the start of the buffer and the first instance of the element in the buffer
      stride - the distance between consecutive instances of the element in the buffer
      Mappings:
      Namespace Name Mixin selector
      named setupState Lnet/minecraft/client/render/VertexFormatElement;setupState(IJI)V
      intermediary method_22652 Lnet/minecraft/class_296;method_22652(IJI)V
      official a Lfaf;a(IJI)V
    • clearState

      public void clearState(int elementIndex)
      Mappings:
      Namespace Name Mixin selector
      named clearState Lnet/minecraft/client/render/VertexFormatElement;clearState(I)V
      intermediary method_22653 Lnet/minecraft/class_296;method_22653(I)V
      official a Lfaf;a(I)V