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
FieldsModifier and TypeFieldDescriptionprivate final org.joml.Vector3f[]The field for thecentroidsrecord component.private final VertexFormat.IndexTypeThe field for theindexTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSortState(org.joml.Vector3f[] centroids, VertexFormat.IndexType indexType) Creates an instance of aSortStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuildSortedIndexBuffer(ByteBufferBuilder p_342323_, VertexSorting p_342363_) org.joml.Vector3f[]Returns the value of thecentroidsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindexTyperecord component.private it.unimi.dsi.fastutil.ints.IntConsumerindexWriter(long p_342999_, VertexFormat.IndexType p_343431_) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
centroids
private final org.joml.Vector3f[] centroidsThe field for thecentroidsrecord component. -
indexType
The field for theindexTyperecord component.
-
-
Constructor Details
-
SortState
Creates an instance of aSortStaterecord class.- Parameters:
centroids- the value for thecentroidsrecord componentindexType- the value for theindexTyperecord 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 thecentroidsrecord component.- Returns:
- the value of the
centroidsrecord component
-
indexType
Returns the value of theindexTyperecord component.- Returns:
- the value of the
indexTyperecord component
-