Record Class VertexFormatElement

java.lang.Object
java.lang.Record
net.minecraft.client.render.VertexFormatElement
Record Components:
id -
uvIndex -
componentType -
type -
componentCount -

@Environment(CLIENT) public record VertexFormatElement(int id, int uvIndex, VertexFormatElement.ComponentType componentType, VertexFormatElement.Type type, int componentCount) extends Record
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 fbi
named id
intermediary comp_2842
official i
named uvIndex
intermediary comp_2843
official j
named componentType
intermediary comp_2844
official k
named type
intermediary comp_2845
official l
named componentCount
intermediary comp_2846
official m
  • Field Details

    • id

      private final int id
      The field for the id record component.
    • uvIndex

      private final int uvIndex
      The field for the uvIndex record component.
    • componentType

      private final VertexFormatElement.ComponentType componentType
      The field for the componentType record component.
    • type

      private final VertexFormatElement.Type type
      The field for the type record component.
    • componentCount

      private final int componentCount
      The field for the componentCount record component.
    • field_52106

      public static final int field_52106
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52106 Lnet/minecraft/client/render/VertexFormatElement;field_52106:I
      intermediary field_52106 Lnet/minecraft/class_296;field_52106:I
      official a Lfbi;a:I
    • field_52114

      private static final VertexFormatElement[] field_52114
      Mappings:
      Namespace Name Mixin selector
      named field_52114 Lnet/minecraft/client/render/VertexFormatElement;field_52114:[Lnet/minecraft/client/render/VertexFormatElement;
      intermediary field_52114 Lnet/minecraft/class_296;field_52114:[Lnet/minecraft/class_296;
      official n Lfbi;n:[Lfbi;
    • field_52115

      private static final List<VertexFormatElement> field_52115
      Mappings:
      Namespace Name Mixin selector
      named field_52115 Lnet/minecraft/client/render/VertexFormatElement;field_52115:Ljava/util/List;
      intermediary field_52115 Lnet/minecraft/class_296;field_52115:Ljava/util/List;
      official o Lfbi;o:Ljava/util/List;
    • field_52107

      public static final VertexFormatElement field_52107
      Mappings:
      Namespace Name Mixin selector
      named field_52107 Lnet/minecraft/client/render/VertexFormatElement;field_52107:Lnet/minecraft/client/render/VertexFormatElement;
      intermediary field_52107 Lnet/minecraft/class_296;field_52107:Lnet/minecraft/class_296;
      official b Lfbi;b:Lfbi;
    • field_52108

      public static final VertexFormatElement field_52108
      Mappings:
      Namespace Name Mixin selector
      named field_52108 Lnet/minecraft/client/render/VertexFormatElement;field_52108:Lnet/minecraft/client/render/VertexFormatElement;
      intermediary field_52108 Lnet/minecraft/class_296;field_52108:Lnet/minecraft/class_296;
      official c Lfbi;c:Lfbi;
    • field_52109

      public static final VertexFormatElement field_52109
      Mappings:
      Namespace Name Mixin selector
      named field_52109 Lnet/minecraft/client/render/VertexFormatElement;field_52109:Lnet/minecraft/client/render/VertexFormatElement;
      intermediary field_52109 Lnet/minecraft/class_296;field_52109:Lnet/minecraft/class_296;
      official d Lfbi;d:Lfbi;
    • field_52110

      public static final VertexFormatElement field_52110
      Mappings:
      Namespace Name Mixin selector
      named field_52110 Lnet/minecraft/client/render/VertexFormatElement;field_52110:Lnet/minecraft/client/render/VertexFormatElement;
      intermediary field_52110 Lnet/minecraft/class_296;field_52110:Lnet/minecraft/class_296;
      official e Lfbi;e:Lfbi;
    • field_52111

      public static final VertexFormatElement field_52111
      Mappings:
      Namespace Name Mixin selector
      named field_52111 Lnet/minecraft/client/render/VertexFormatElement;field_52111:Lnet/minecraft/client/render/VertexFormatElement;
      intermediary field_52111 Lnet/minecraft/class_296;field_52111:Lnet/minecraft/class_296;
      official f Lfbi;f:Lfbi;
    • field_52112

      public static final VertexFormatElement field_52112
      Mappings:
      Namespace Name Mixin selector
      named field_52112 Lnet/minecraft/client/render/VertexFormatElement;field_52112:Lnet/minecraft/client/render/VertexFormatElement;
      intermediary field_52112 Lnet/minecraft/class_296;field_52112:Lnet/minecraft/class_296;
      official g Lfbi;g:Lfbi;
    • field_52113

      public static final VertexFormatElement field_52113
      Mappings:
      Namespace Name Mixin selector
      named field_52113 Lnet/minecraft/client/render/VertexFormatElement;field_52113:Lnet/minecraft/client/render/VertexFormatElement;
      intermediary field_52113 Lnet/minecraft/class_296;field_52113:Lnet/minecraft/class_296;
      official h Lfbi;h:Lfbi;
  • Constructor Details

    • VertexFormatElement

      public VertexFormatElement(int uvIndex, int int2, VertexFormatElement.ComponentType componentType, VertexFormatElement.Type type, int int3)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/VertexFormatElement;<init>(IILnet/minecraft/client/render/VertexFormatElement$ComponentType;Lnet/minecraft/client/render/VertexFormatElement$Type;I)V
      intermediary <init> Lnet/minecraft/class_296;<init>(IILnet/minecraft/class_296$class_297;Lnet/minecraft/class_296$class_298;I)V
      official <init> Lfbi;<init>(IILfbi$a;Lfbi$b;I)V
  • Method Details

    • method_60845

      public static VertexFormatElement method_60845(int int2, int int3, VertexFormatElement.ComponentType componentType, VertexFormatElement.Type type, int int4)
      Mappings:
      Namespace Name Mixin selector
      named method_60845 Lnet/minecraft/client/render/VertexFormatElement;method_60845(IILnet/minecraft/client/render/VertexFormatElement$ComponentType;Lnet/minecraft/client/render/VertexFormatElement$Type;I)Lnet/minecraft/client/render/VertexFormatElement;
      intermediary method_60845 Lnet/minecraft/class_296;method_60845(IILnet/minecraft/class_296$class_297;Lnet/minecraft/class_296$class_298;I)Lnet/minecraft/class_296;
      official a Lfbi;a(IILfbi$a;Lfbi$b;I)Lfbi;
    • 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 Lfbi;a(ILfbi$b;)Z
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • method_60843

      public int method_60843()
      Mappings:
      Namespace Name Mixin selector
      named method_60843 Lnet/minecraft/client/render/VertexFormatElement;method_60843()I
      intermediary method_60843 Lnet/minecraft/class_296;method_60843()I
      official a Lfbi;a()I
    • method_60847

      public int method_60847()
      Mappings:
      Namespace Name Mixin selector
      named method_60847 Lnet/minecraft/client/render/VertexFormatElement;method_60847()I
      intermediary method_60847 Lnet/minecraft/class_296;method_60847()I
      official b Lfbi;b()I
    • 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 Lfbi;a(IJI)V
    • method_60844

      @Nullable public static @Nullable VertexFormatElement method_60844(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_60844 Lnet/minecraft/client/render/VertexFormatElement;method_60844(I)Lnet/minecraft/client/render/VertexFormatElement;
      intermediary method_60844 Lnet/minecraft/class_296;method_60844(I)Lnet/minecraft/class_296;
      official a Lfbi;a(I)Lfbi;
    • method_60848

      public static Stream<VertexFormatElement> method_60848(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_60848 Lnet/minecraft/client/render/VertexFormatElement;method_60848(I)Ljava/util/stream/Stream;
      intermediary method_60848 Lnet/minecraft/class_296;method_60848(I)Ljava/util/stream/Stream;
      official b Lfbi;b(I)Ljava/util/stream/Stream;
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • uvIndex

      public int uvIndex()
      Returns the value of the uvIndex record component.
      Returns:
      the value of the uvIndex record component
    • componentType

      public VertexFormatElement.ComponentType componentType()
      Returns the value of the componentType record component.
      Returns:
      the value of the componentType record component
    • type

      public VertexFormatElement.Type type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • componentCount

      public int componentCount()
      Returns the value of the componentCount record component.
      Returns:
      the value of the componentCount record component