Package net.minecraft.client.render
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/VertexFormatElementintermediary net/minecraft/class_296official fbinamed idintermediary comp_2842official inamed uvIndexintermediary comp_2843official jnamed componentTypeintermediary comp_2844official knamed typeintermediary comp_2845official lnamed componentCountintermediary comp_2846official m
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents a type of components in an element.static enumDescribes how the components should be interpreted. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecomponentCountrecord component.private final VertexFormatElement.ComponentTypeThe field for thecomponentTyperecord component.static final intstatic final VertexFormatElementstatic final VertexFormatElementstatic final VertexFormatElementstatic final VertexFormatElementstatic final VertexFormatElementstatic final VertexFormatElementstatic final VertexFormatElementprivate static final VertexFormatElement[]private static final List<VertexFormatElement> private final intThe field for theidrecord component.private final VertexFormatElement.TypeThe field for thetyperecord component.private final intThe field for theuvIndexrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionVertexFormatElement(int uvIndex, int int2, VertexFormatElement.ComponentType componentType, VertexFormatElement.Type type, int int3) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecomponentCountrecord component.Returns the value of thecomponentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.private booleanisValidType(int uvIndex, VertexFormatElement.Type type) intstatic @Nullable VertexFormatElementmethod_60844(int int2) static VertexFormatElementmethod_60845(int int2, int int3, VertexFormatElement.ComponentType componentType, VertexFormatElement.Type type, int int4) intstatic Stream<VertexFormatElement> method_60848(int int2) voidsetupState(int elementIndex, long offset, int stride) Specifies for OpenGL how the vertex data corresponding to this element should be interpreted.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.intuvIndex()Returns the value of theuvIndexrecord component.
-
Field Details
-
id
private final int idThe field for theidrecord component. -
uvIndex
private final int uvIndexThe field for theuvIndexrecord component. -
componentType
The field for thecomponentTyperecord component. -
type
The field for thetyperecord component. -
componentCount
private final int componentCountThe field for thecomponentCountrecord component. -
field_52106
public static final int field_52106- See Also:
- Mappings:
Namespace Name Mixin selector named field_52106Lnet/minecraft/client/render/VertexFormatElement;field_52106:Iintermediary field_52106Lnet/minecraft/class_296;field_52106:Iofficial aLfbi;a:I
-
field_52114
- Mappings:
Namespace Name Mixin selector named field_52114Lnet/minecraft/client/render/VertexFormatElement;field_52114:[Lnet/minecraft/client/render/VertexFormatElement;intermediary field_52114Lnet/minecraft/class_296;field_52114:[Lnet/minecraft/class_296;official nLfbi;n:[Lfbi;
-
field_52115
- Mappings:
Namespace Name Mixin selector named field_52115Lnet/minecraft/client/render/VertexFormatElement;field_52115:Ljava/util/List;intermediary field_52115Lnet/minecraft/class_296;field_52115:Ljava/util/List;official oLfbi;o:Ljava/util/List;
-
field_52107
- Mappings:
Namespace Name Mixin selector named field_52107Lnet/minecraft/client/render/VertexFormatElement;field_52107:Lnet/minecraft/client/render/VertexFormatElement;intermediary field_52107Lnet/minecraft/class_296;field_52107:Lnet/minecraft/class_296;official bLfbi;b:Lfbi;
-
field_52108
- Mappings:
Namespace Name Mixin selector named field_52108Lnet/minecraft/client/render/VertexFormatElement;field_52108:Lnet/minecraft/client/render/VertexFormatElement;intermediary field_52108Lnet/minecraft/class_296;field_52108:Lnet/minecraft/class_296;official cLfbi;c:Lfbi;
-
field_52109
- Mappings:
Namespace Name Mixin selector named field_52109Lnet/minecraft/client/render/VertexFormatElement;field_52109:Lnet/minecraft/client/render/VertexFormatElement;intermediary field_52109Lnet/minecraft/class_296;field_52109:Lnet/minecraft/class_296;official dLfbi;d:Lfbi;
-
field_52110
- Mappings:
Namespace Name Mixin selector named field_52110Lnet/minecraft/client/render/VertexFormatElement;field_52110:Lnet/minecraft/client/render/VertexFormatElement;intermediary field_52110Lnet/minecraft/class_296;field_52110:Lnet/minecraft/class_296;official eLfbi;e:Lfbi;
-
field_52111
- Mappings:
Namespace Name Mixin selector named field_52111Lnet/minecraft/client/render/VertexFormatElement;field_52111:Lnet/minecraft/client/render/VertexFormatElement;intermediary field_52111Lnet/minecraft/class_296;field_52111:Lnet/minecraft/class_296;official fLfbi;f:Lfbi;
-
field_52112
- Mappings:
Namespace Name Mixin selector named field_52112Lnet/minecraft/client/render/VertexFormatElement;field_52112:Lnet/minecraft/client/render/VertexFormatElement;intermediary field_52112Lnet/minecraft/class_296;field_52112:Lnet/minecraft/class_296;official gLfbi;g:Lfbi;
-
field_52113
- Mappings:
Namespace Name Mixin selector named field_52113Lnet/minecraft/client/render/VertexFormatElement;field_52113:Lnet/minecraft/client/render/VertexFormatElement;intermediary field_52113Lnet/minecraft/class_296;field_52113:Lnet/minecraft/class_296;official hLfbi;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)Vintermediary <init>Lnet/minecraft/class_296;<init>(IILnet/minecraft/class_296$class_297;Lnet/minecraft/class_296$class_298;I)Vofficial <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_60845Lnet/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_60845Lnet/minecraft/class_296;method_60845(IILnet/minecraft/class_296$class_297;Lnet/minecraft/class_296$class_298;I)Lnet/minecraft/class_296;official aLfbi;a(IILfbi$a;Lfbi$b;I)Lfbi;
-
isValidType
- Mappings:
Namespace Name Mixin selector named isValidTypeLnet/minecraft/client/render/VertexFormatElement;isValidType(ILnet/minecraft/client/render/VertexFormatElement$Type;)Zintermediary method_1383Lnet/minecraft/class_296;method_1383(ILnet/minecraft/class_296$class_298;)Zofficial aLfbi;a(ILfbi$b;)Z
-
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. -
method_60843
public int method_60843()- Mappings:
Namespace Name Mixin selector named method_60843Lnet/minecraft/client/render/VertexFormatElement;method_60843()Iintermediary method_60843Lnet/minecraft/class_296;method_60843()Iofficial aLfbi;a()I
-
method_60847
public int method_60847()- Mappings:
Namespace Name Mixin selector named method_60847Lnet/minecraft/client/render/VertexFormatElement;method_60847()Iintermediary method_60847Lnet/minecraft/class_296;method_60847()Iofficial bLfbi;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 formatoffset- the distance between the start of the buffer and the first instance of the element in the bufferstride- the distance between consecutive instances of the element in the buffer- Mappings:
Namespace Name Mixin selector named setupStateLnet/minecraft/client/render/VertexFormatElement;setupState(IJI)Vintermediary method_22652Lnet/minecraft/class_296;method_22652(IJI)Vofficial aLfbi;a(IJI)V
-
method_60844
- Mappings:
Namespace Name Mixin selector named method_60844Lnet/minecraft/client/render/VertexFormatElement;method_60844(I)Lnet/minecraft/client/render/VertexFormatElement;intermediary method_60844Lnet/minecraft/class_296;method_60844(I)Lnet/minecraft/class_296;official aLfbi;a(I)Lfbi;
-
method_60848
- Mappings:
Namespace Name Mixin selector named method_60848Lnet/minecraft/client/render/VertexFormatElement;method_60848(I)Ljava/util/stream/Stream;intermediary method_60848Lnet/minecraft/class_296;method_60848(I)Ljava/util/stream/Stream;official bLfbi;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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
uvIndex
public int uvIndex()Returns the value of theuvIndexrecord component.- Returns:
- the value of the
uvIndexrecord component
-
componentType
Returns the value of thecomponentTyperecord component.- Returns:
- the value of the
componentTyperecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
componentCount
public int componentCount()Returns the value of thecomponentCountrecord component.- Returns:
- the value of the
componentCountrecord component
-