Package com.mojang.blaze3d.vertex
Record Class MeshData.SortState
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.MeshData.SortState
- Enclosing class:
MeshData
public static record MeshData.SortState(org.joml.Vector3f[] centroids, VertexFormat.IndexType indexType)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.joml.Vector3f[]
The field for thecentroids
record component.private final VertexFormat.IndexType
The field for theindexType
record component. -
Constructor Summary
ConstructorDescriptionSortState
(org.joml.Vector3f[] centroids, VertexFormat.IndexType indexType) Creates an instance of aSortState
record class. -
Method Summary
Modifier and TypeMethodDescriptionbuildSortedIndexBuffer
(ByteBufferBuilder p_342323_, VertexSorting p_342363_) org.joml.Vector3f[]
Returns the value of thecentroids
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theindexType
record component.private it.unimi.dsi.fastutil.ints.IntConsumer
indexWriter
(long p_342999_, VertexFormat.IndexType p_343431_) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
centroids
private final org.joml.Vector3f[] centroidsThe field for thecentroids
record component. -
indexType
The field for theindexType
record component.
-
-
Constructor Details
-
SortState
Creates an instance of aSortState
record class.- Parameters:
centroids
- the value for thecentroids
record componentindexType
- the value for theindexType
record component
-
-
Method Details
-
buildSortedIndexBuffer
@Nullable public ByteBufferBuilder.Result buildSortedIndexBuffer(ByteBufferBuilder p_342323_, VertexSorting p_342363_) -
indexWriter
private it.unimi.dsi.fastutil.ints.IntConsumer indexWriter(long p_342999_, VertexFormat.IndexType p_343431_) -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
centroids
public org.joml.Vector3f[] centroids()Returns the value of thecentroids
record component.- Returns:
- the value of the
centroids
record component
-
indexType
Returns the value of theindexType
record component.- Returns:
- the value of the
indexType
record component
-