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/VertexFormatElement
intermediary com/mojang/blaze3d/vertex/VertexFormatElement
official com/mojang/blaze3d/vertex/VertexFormatElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final VertexFormatElement[]
static final VertexFormatElement
private final int
The field for thecount
record component.private static final List
<VertexFormatElement> private final int
The field for theid
record component.private final int
The field for theindex
record component.static final int
static final VertexFormatElement
static final VertexFormatElement
private final VertexFormatElement.Type
The field for thetype
record component.private final VertexFormatElement.Usage
The field for theusage
record component.static final VertexFormatElement
static final VertexFormatElement
static final VertexFormatElement
static final VertexFormatElement
-
Constructor Summary
ConstructorsConstructorDescriptionVertexFormatElement
(int int2, int int3, VertexFormatElement.Type type, VertexFormatElement.Usage usage, int int4) -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable VertexFormatElement
byId
(int id) int
byteSize()
int
count()
Returns the value of thecount
record component.static Stream
<VertexFormatElement> elementsFromMask
(int mask) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.int
index()
Returns the value of theindex
record component.int
mask()
static VertexFormatElement
register
(int id, int index, VertexFormatElement.Type type, VertexFormatElement.Usage usage, int count) private boolean
supportsUsage
(int uvIndex, VertexFormatElement.Usage usage) toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.usage()
Returns the value of theusage
record component.
-
Field Details
-
id
private final int idThe field for theid
record component. -
index
private final int indexThe field for theindex
record component. -
type
The field for thetype
record component. -
usage
The field for theusage
record component. -
count
private final int countThe field for thecount
record 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 register
Lcom/mojang/blaze3d/vertex/VertexFormatElement;register(IILcom/mojang/blaze3d/vertex/VertexFormatElement$Type;Lcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
intermediary register
Lcom/mojang/blaze3d/vertex/VertexFormatElement;register(IILcom/mojang/blaze3d/vertex/VertexFormatElement$Type;Lcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
official register
Lcom/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 supportsUsage
Lcom/mojang/blaze3d/vertex/VertexFormatElement;supportsUsage(ILcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;)Z
intermediary supportsUsage
Lcom/mojang/blaze3d/vertex/VertexFormatElement;supportsUsage(ILcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;)Z
official supportsUsage
Lcom/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 byId
Lcom/mojang/blaze3d/vertex/VertexFormatElement;byId(I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
intermediary byId
Lcom/mojang/blaze3d/vertex/VertexFormatElement;byId(I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
official byId
Lcom/mojang/blaze3d/vertex/VertexFormatElement;byId(I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
-
elementsFromMask
- Mappings:
Namespace Name Mixin selector named elementsFromMask
Lcom/mojang/blaze3d/vertex/VertexFormatElement;elementsFromMask(I)Ljava/util/stream/Stream;
intermediary elementsFromMask
Lcom/mojang/blaze3d/vertex/VertexFormatElement;elementsFromMask(I)Ljava/util/stream/Stream;
official elementsFromMask
Lcom/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 theid
record component.- Returns:
- the value of the
id
record component
-
index
public int index()Returns the value of theindex
record component.- Returns:
- the value of the
index
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
usage
Returns the value of theusage
record component.- Returns:
- the value of the
usage
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-