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, IndexType indexType)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CompactVectorArrayThe field for thecentroidsrecord component.private final IndexTypeThe field for theindexTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSortState(CompactVectorArray centroids, IndexType indexType) Creates an instance of aSortStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuildSortedIndexBuffer(ByteBufferBuilder target, VertexSorting sorting) 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 pointer, IndexType indexType) final StringtoString()Returns a string representation of this record class.private static voidwriteIndices(int[] startIndices, it.unimi.dsi.fastutil.ints.IntConsumer output) voidwriteSortedIndexBuffer(ByteBuffer target, VertexSorting sorting)
-
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
public @Nullable ByteBufferBuilder.Result buildSortedIndexBuffer(ByteBufferBuilder target, VertexSorting sorting) -
writeSortedIndexBuffer
-
writeIndices
private static void writeIndices(int[] startIndices, it.unimi.dsi.fastutil.ints.IntConsumer output) -
indexWriter
-
toString
-
hashCode
-
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
-