Package com.mojang.blaze3d.vertex
Record Class VertexFormatElement
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.VertexFormatElement
@Environment(CLIENT)
public record VertexFormatElement(int id, int index, VertexFormatElement.Type type, VertexFormatElement.Usage usage, int count)
extends Record
- Mappings:
Namespace Name named com/mojang/blaze3d/vertex/VertexFormatElementintermediary com/mojang/blaze3d/vertex/VertexFormatElementofficial com/mojang/blaze3d/vertex/VertexFormatElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final VertexFormatElement[]static final VertexFormatElementprivate final intThe field for thecountrecord component.private static final List<VertexFormatElement> private final intThe field for theidrecord component.private final intThe field for theindexrecord component.static final intstatic final VertexFormatElementstatic final VertexFormatElementprivate final VertexFormatElement.TypeThe field for thetyperecord component.private final VertexFormatElement.UsageThe field for theusagerecord component.static final VertexFormatElementstatic final VertexFormatElementstatic final VertexFormatElementstatic final VertexFormatElement -
Constructor Summary
ConstructorsConstructorDescriptionVertexFormatElement(int int2, int int3, VertexFormatElement.Type type, VertexFormatElement.Usage usage, int int4) -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable VertexFormatElementbyId(int id) intbyteSize()intcount()Returns the value of thecountrecord component.static Stream<VertexFormatElement> elementsFromMask(int mask) 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.intindex()Returns the value of theindexrecord component.intmask()static VertexFormatElementregister(int id, int index, VertexFormatElement.Type type, VertexFormatElement.Usage usage, int count) private booleansupportsUsage(int uvIndex, VertexFormatElement.Usage usage) toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.usage()Returns the value of theusagerecord component.
-
Field Details
-
id
private final int idThe field for theidrecord component. -
index
private final int indexThe field for theindexrecord component. -
type
The field for thetyperecord component. -
usage
The field for theusagerecord component. -
count
private final int countThe field for thecountrecord component. -
MAX_COUNT
public static final int MAX_COUNT- See Also:
-
BY_ID
-
ELEMENTS
-
POSITION
-
COLOR
-
UV0
-
UV
-
UV1
-
UV2
-
NORMAL
-
-
Constructor Details
-
VertexFormatElement
public VertexFormatElement(int int2, int int3, VertexFormatElement.Type type, VertexFormatElement.Usage usage, int int4)
-
-
Method Details
-
register
public static VertexFormatElement register(int id, int index, VertexFormatElement.Type type, VertexFormatElement.Usage usage, int count) - Mappings:
Namespace Name Mixin selector named registerLcom/mojang/blaze3d/vertex/VertexFormatElement;register(IILcom/mojang/blaze3d/vertex/VertexFormatElement$Type;Lcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;intermediary registerLcom/mojang/blaze3d/vertex/VertexFormatElement;register(IILcom/mojang/blaze3d/vertex/VertexFormatElement$Type;Lcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;official registerLcom/mojang/blaze3d/vertex/VertexFormatElement;register(IILcom/mojang/blaze3d/vertex/VertexFormatElement$Type;Lcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
-
supportsUsage
- Mappings:
Namespace Name Mixin selector named supportsUsageLcom/mojang/blaze3d/vertex/VertexFormatElement;supportsUsage(ILcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;)Zintermediary supportsUsageLcom/mojang/blaze3d/vertex/VertexFormatElement;supportsUsage(ILcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;)Zofficial supportsUsageLcom/mojang/blaze3d/vertex/VertexFormatElement;supportsUsage(ILcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;)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. -
mask
public int mask() -
byteSize
public int byteSize() -
byId
- Mappings:
Namespace Name Mixin selector named byIdLcom/mojang/blaze3d/vertex/VertexFormatElement;byId(I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;intermediary byIdLcom/mojang/blaze3d/vertex/VertexFormatElement;byId(I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;official byIdLcom/mojang/blaze3d/vertex/VertexFormatElement;byId(I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
-
elementsFromMask
- Mappings:
Namespace Name Mixin selector named elementsFromMaskLcom/mojang/blaze3d/vertex/VertexFormatElement;elementsFromMask(I)Ljava/util/stream/Stream;intermediary elementsFromMaskLcom/mojang/blaze3d/vertex/VertexFormatElement;elementsFromMask(I)Ljava/util/stream/Stream;official elementsFromMaskLcom/mojang/blaze3d/vertex/VertexFormatElement;elementsFromMask(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
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
usage
Returns the value of theusagerecord component.- Returns:
- the value of the
usagerecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-