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(CompactVectorArray centroids, VertexFormat.IndexType indexType)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CompactVectorArrayThe field for thecentroidsrecord component.private final VertexFormat.IndexTypeThe field for theindexTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSortState(CompactVectorArray centroids, VertexFormat.IndexType indexType) Creates an instance of aSortStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuildSortedIndexBuffer(ByteBufferBuilder pBufferBuilder, VertexSorting pSorting) 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 pIndex, VertexFormat.IndexType pType) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
centroids
The 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 pBufferBuilder, VertexSorting pSorting) -
indexWriter
private it.unimi.dsi.fastutil.ints.IntConsumer indexWriter(long pIndex, VertexFormat.IndexType pType) -
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
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
-