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 TypeMethodDescription@Nullable ByteBufferBuilder.ResultbuildSortedIndexBuffer(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, VertexFormat.IndexType indexType) 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
public @Nullable ByteBufferBuilder.Result buildSortedIndexBuffer(ByteBufferBuilder target, VertexSorting sorting) -
indexWriter
private it.unimi.dsi.fastutil.ints.IntConsumer indexWriter(long pointer, VertexFormat.IndexType indexType) -
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
-