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 Details

    • centroids

      private final org.joml.Vector3f[] centroids
      The field for the centroids record component.
    • indexType

      private final VertexFormat.IndexType indexType
      The field for the indexType record component.
  • Constructor Details

    • SortState

      public SortState(org.joml.Vector3f[] centroids, VertexFormat.IndexType indexType)
      Creates an instance of a SortState record class.
      Parameters:
      centroids - the value for the centroids record component
      indexType - the value for the indexType record component
  • Method Details

    • buildSortedIndexBuffer

      @Nullable public ByteBufferBuilder.Result buildSortedIndexBuffer(ByteBufferBuilder p_351024_, VertexSorting p_350537_)
    • indexWriter

      private it.unimi.dsi.fastutil.ints.IntConsumer indexWriter(long p_350877_, VertexFormat.IndexType p_350389_)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • centroids

      public org.joml.Vector3f[] centroids()
      Returns the value of the centroids record component.
      Returns:
      the value of the centroids record component
    • indexType

      public VertexFormat.IndexType indexType()
      Returns the value of the indexType record component.
      Returns:
      the value of the indexType record component