Record Class DynamicGpuData.IndexedDraw

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.DynamicGpuData.IndexedDraw
All Implemented Interfaces:
DynamicGpuDataStorage.DynamicGpuData
Enclosing class:
DynamicGpuData

public static record DynamicGpuData.IndexedDraw(int indexCount, int instanceCount, int firstIndex, int baseVertex, int baseInstance) extends Record implements DynamicGpuDataStorage.DynamicGpuData
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the baseInstance record component.
    private final int
    The field for the baseVertex record component.
    private final int
    The field for the firstIndex record component.
    private final int
    The field for the indexCount record component.
    private final int
    The field for the instanceCount record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    IndexedDraw(int indexCount, int instanceCount, int firstIndex, int baseVertex, int baseInstance)
    Creates an instance of a IndexedDraw record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the baseInstance record component.
    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.
    int
    Returns the value of the indexCount record component.
    int
    Returns the value of the instanceCount record component.
    final String
    Returns a string representation of this record class.
    void
    write(ByteBuffer buffer)
     

    Methods inherited from class Object

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

    • indexCount

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

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

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

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

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

    • IndexedDraw

      public IndexedDraw(int indexCount, int instanceCount, int firstIndex, int baseVertex, int baseInstance)
      Creates an instance of a IndexedDraw record class.
      Parameters:
      indexCount - the value for the indexCount record component
      instanceCount - the value for the instanceCount record component
      firstIndex - the value for the firstIndex record component
      baseVertex - the value for the baseVertex record component
      baseInstance - the value for the baseInstance record component
  • Method Details

    • write

      public void write(ByteBuffer buffer)
      Specified by:
      write in interface DynamicGpuDataStorage.DynamicGpuData
    • 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 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.
    • indexCount

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

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

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

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

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