Record Class StagedVertexBuffer.ExecuteInfo

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.StagedVertexBuffer.ExecuteInfo
Enclosing class:
StagedVertexBuffer

public static record StagedVertexBuffer.ExecuteInfo(GpuBuffer vertexBuffer, GpuBuffer indexBuffer, IndexType indexType, int baseVertex, int firstIndex, int indexCount) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the baseVertex record component.
    private final int
    The field for the firstIndex record component.
    private final GpuBuffer
    The field for the indexBuffer record component.
    private final int
    The field for the indexCount record component.
    private final IndexType
    The field for the indexType record component.
    private final GpuBuffer
    The field for the vertexBuffer record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExecuteInfo(GpuBuffer vertexBuffer, GpuBuffer indexBuffer, IndexType indexType, int baseVertex, int firstIndex, int indexCount)
    Creates an instance of a ExecuteInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the baseVertex record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the firstIndex record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the indexBuffer record component.
    int
    Returns the value of the indexCount record component.
    Returns the value of the indexType record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the vertexBuffer record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • vertexBuffer

      private final GpuBuffer vertexBuffer
      The field for the vertexBuffer record component.
    • indexBuffer

      private final GpuBuffer indexBuffer
      The field for the indexBuffer record component.
    • indexType

      private final IndexType indexType
      The field for the indexType record component.
    • baseVertex

      private final int baseVertex
      The field for the baseVertex record component.
    • firstIndex

      private final int firstIndex
      The field for the firstIndex record component.
    • indexCount

      private final int indexCount
      The field for the indexCount record component.
  • Constructor Details

    • ExecuteInfo

      public ExecuteInfo(GpuBuffer vertexBuffer, GpuBuffer indexBuffer, IndexType indexType, int baseVertex, int firstIndex, int indexCount)
      Creates an instance of a ExecuteInfo record class.
      Parameters:
      vertexBuffer - the value for the vertexBuffer record component
      indexBuffer - the value for the indexBuffer record component
      indexType - the value for the indexType record component
      baseVertex - the value for the baseVertex record component
      firstIndex - the value for the firstIndex record component
      indexCount - the value for the indexCount record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • vertexBuffer

      public GpuBuffer vertexBuffer()
      Returns the value of the vertexBuffer record component.
      Returns:
      the value of the vertexBuffer record component
    • indexBuffer

      public GpuBuffer indexBuffer()
      Returns the value of the indexBuffer record component.
      Returns:
      the value of the indexBuffer record component
    • indexType

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

      public int baseVertex()
      Returns the value of the baseVertex record component.
      Returns:
      the value of the baseVertex record component
    • firstIndex

      public int firstIndex()
      Returns the value of the firstIndex record component.
      Returns:
      the value of the firstIndex record component
    • indexCount

      public int indexCount()
      Returns the value of the indexCount record component.
      Returns:
      the value of the indexCount record component