Package net.minecraft.client.render
Record Class VertexFormatElement
java.lang.Object
java.lang.Record
net.minecraft.client.render.VertexFormatElement
- Record Components:
- id-
- uvIndex-
- type-
- usage-
- count-
@Environment(CLIENT)
public record VertexFormatElement(int id, int uvIndex, VertexFormatElement.ComponentType type, VertexFormatElement.Usage usage, int count)
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 - fgb- named - id- intermediary - comp_2842- official - i- named - uvIndex- intermediary - comp_2843- official - j- named - type- intermediary - comp_2844- official - k- named - usage- intermediary - comp_2845- official - l- named - count- intermediary - comp_2846- official - m
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumRepresents a type of components in an element.static enumDescribes how the components should be interpreted.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final VertexFormatElementprivate final intThe field for thecountrecord component.private static final VertexFormatElement[]private static final List<VertexFormatElement> static final intprivate final intThe field for theidrecord component.static final VertexFormatElementstatic final VertexFormatElementprivate final VertexFormatElement.ComponentTypeThe field for thetyperecord component.private final VertexFormatElement.UsageThe field for theusagerecord component.static final VertexFormatElementstatic final VertexFormatElementstatic final VertexFormatElementstatic final VertexFormatElementprivate final intThe field for theuvIndexrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionVertexFormatElement(int uvIndex, int int2, VertexFormatElement.ComponentType componentType, VertexFormatElement.Usage usage, int int3) 
- 
Method SummaryModifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.static @Nullable VertexFormatElementget(int id) intgetBit()intfinal inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.private booleanisValidType(int uvIndex, VertexFormatElement.Usage type) static VertexFormatElementregister(int id, int uvIndex, VertexFormatElement.ComponentType type, VertexFormatElement.Usage usage, int count) voidsetupState(int elementIndex, long offset, int stride) Specifies for OpenGL how the vertex data corresponding to this element should be interpreted.static Stream<VertexFormatElement> streamFromMask(int mask) toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.usage()Returns the value of theusagerecord component.intuvIndex()Returns the value of theuvIndexrecord component.
- 
Field Details- 
idprivate final int idThe field for theidrecord component.
- 
uvIndexprivate final int uvIndexThe field for theuvIndexrecord component.
- 
typeThe field for thetyperecord component.
- 
usageThe field for theusagerecord component.
- 
countprivate final int countThe field for thecountrecord component.
- 
field_52106public 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- Lfgb;a:I
 
- 
ELEMENTS- Mappings:
- Namespace - Name - Mixin selector - named - ELEMENTS- Lnet/minecraft/client/render/VertexFormatElement;ELEMENTS:[Lnet/minecraft/client/render/VertexFormatElement;- intermediary - field_52114- Lnet/minecraft/class_296;field_52114:[Lnet/minecraft/class_296;- official - n- Lfgb;n:[Lfgb;
 
- 
ELEMENTS_LIST- Mappings:
- Namespace - Name - Mixin selector - named - ELEMENTS_LIST- Lnet/minecraft/client/render/VertexFormatElement;ELEMENTS_LIST:Ljava/util/List;- intermediary - field_52115- Lnet/minecraft/class_296;field_52115:Ljava/util/List;- official - o- Lfgb;o:Ljava/util/List;
 
- 
POSITION- Mappings:
- Namespace - Name - Mixin selector - named - POSITION- Lnet/minecraft/client/render/VertexFormatElement;POSITION:Lnet/minecraft/client/render/VertexFormatElement;- intermediary - field_52107- Lnet/minecraft/class_296;field_52107:Lnet/minecraft/class_296;- official - b- Lfgb;b:Lfgb;
 
- 
COLOR- Mappings:
- Namespace - Name - Mixin selector - named - COLOR- Lnet/minecraft/client/render/VertexFormatElement;COLOR:Lnet/minecraft/client/render/VertexFormatElement;- intermediary - field_52108- Lnet/minecraft/class_296;field_52108:Lnet/minecraft/class_296;- official - c- Lfgb;c:Lfgb;
 
- 
UV_0- Mappings:
- Namespace - Name - Mixin selector - named - UV_0- Lnet/minecraft/client/render/VertexFormatElement;UV_0:Lnet/minecraft/client/render/VertexFormatElement;- intermediary - field_52109- Lnet/minecraft/class_296;field_52109:Lnet/minecraft/class_296;- official - d- Lfgb;d:Lfgb;
 
- 
UV- Mappings:
- Namespace - Name - Mixin selector - named - UV- Lnet/minecraft/client/render/VertexFormatElement;UV:Lnet/minecraft/client/render/VertexFormatElement;- intermediary - field_52110- Lnet/minecraft/class_296;field_52110:Lnet/minecraft/class_296;- official - e- Lfgb;e:Lfgb;
 
- 
UV_1- Mappings:
- Namespace - Name - Mixin selector - named - UV_1- Lnet/minecraft/client/render/VertexFormatElement;UV_1:Lnet/minecraft/client/render/VertexFormatElement;- intermediary - field_52111- Lnet/minecraft/class_296;field_52111:Lnet/minecraft/class_296;- official - f- Lfgb;f:Lfgb;
 
- 
UV_2- Mappings:
- Namespace - Name - Mixin selector - named - UV_2- Lnet/minecraft/client/render/VertexFormatElement;UV_2:Lnet/minecraft/client/render/VertexFormatElement;- intermediary - field_52112- Lnet/minecraft/class_296;field_52112:Lnet/minecraft/class_296;- official - g- Lfgb;g:Lfgb;
 
- 
NORMAL- Mappings:
- Namespace - Name - Mixin selector - named - NORMAL- Lnet/minecraft/client/render/VertexFormatElement;NORMAL:Lnet/minecraft/client/render/VertexFormatElement;- intermediary - field_52113- Lnet/minecraft/class_296;field_52113:Lnet/minecraft/class_296;- official - h- Lfgb;h:Lfgb;
 
 
- 
- 
Constructor Details- 
VertexFormatElementpublic VertexFormatElement(int uvIndex, int int2, VertexFormatElement.ComponentType componentType, VertexFormatElement.Usage usage, 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$Usage;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>- Lfgb;<init>(IILfgb$a;Lfgb$b;I)V
 
 
- 
- 
Method Details- 
registerpublic static VertexFormatElement register(int id, int uvIndex, VertexFormatElement.ComponentType type, VertexFormatElement.Usage usage, int count) - Mappings:
- Namespace - Name - Mixin selector - named - register- Lnet/minecraft/client/render/VertexFormatElement;register(IILnet/minecraft/client/render/VertexFormatElement$ComponentType;Lnet/minecraft/client/render/VertexFormatElement$Usage;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- Lfgb;a(IILfgb$a;Lfgb$b;I)Lfgb;
 
- 
isValidType- Mappings:
- Namespace - Name - Mixin selector - named - isValidType- Lnet/minecraft/client/render/VertexFormatElement;isValidType(ILnet/minecraft/client/render/VertexFormatElement$Usage;)Z- intermediary - method_1383- Lnet/minecraft/class_296;method_1383(ILnet/minecraft/class_296$class_298;)Z- official - a- Lfgb;a(ILfgb$b;)Z
 
- 
toStringReturns 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.
- 
getBitpublic int getBit()- Mappings:
- Namespace - Name - Mixin selector - named - getBit- Lnet/minecraft/client/render/VertexFormatElement;getBit()I- intermediary - method_60843- Lnet/minecraft/class_296;method_60843()I- official - a- Lfgb;a()I
 
- 
getSizeInBytespublic int getSizeInBytes()- Mappings:
- Namespace - Name - Mixin selector - named - getSizeInBytes- Lnet/minecraft/client/render/VertexFormatElement;getSizeInBytes()I- intermediary - method_60847- Lnet/minecraft/class_296;method_60847()I- official - b- Lfgb;b()I
 
- 
setupStatepublic 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- Lfgb;a(IJI)V
 
- 
get- Mappings:
- Namespace - Name - Mixin selector - named - get- Lnet/minecraft/client/render/VertexFormatElement;get(I)Lnet/minecraft/client/render/VertexFormatElement;- intermediary - method_60844- Lnet/minecraft/class_296;method_60844(I)Lnet/minecraft/class_296;- official - a- Lfgb;a(I)Lfgb;
 
- 
streamFromMask- Mappings:
- Namespace - Name - Mixin selector - named - streamFromMask- Lnet/minecraft/client/render/VertexFormatElement;streamFromMask(I)Ljava/util/stream/Stream;- intermediary - method_60848- Lnet/minecraft/class_296;method_60848(I)Ljava/util/stream/Stream;- official - b- Lfgb;b(I)Ljava/util/stream/Stream;
 
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
idpublic int id()Returns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
uvIndexpublic int uvIndex()Returns the value of theuvIndexrecord component.- Returns:
- the value of the uvIndexrecord component
 
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
usageReturns the value of theusagerecord component.- Returns:
- the value of the usagerecord component
 
- 
countpublic int count()Returns the value of thecountrecord component.- Returns:
- the value of the countrecord component
 
 
-