Record Class BufferBuilder.DrawParameters

java.lang.Object
java.lang.Record
net.minecraft.client.render.BufferBuilder.DrawParameters
Record Components:
format -
vertexCount -
indexCount -
mode -
indexType -
indexOnly -
sequentialIndex -
Enclosing class:
BufferBuilder

@Environment(CLIENT) public static record BufferBuilder.DrawParameters(VertexFormat format, int vertexCount, int indexCount, VertexFormat.DrawMode mode, VertexFormat.IndexType indexType, boolean indexOnly, boolean sequentialIndex) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/BufferBuilder$DrawParameters
intermediary net/minecraft/class_287$class_4574
official faj$a
named format
intermediary comp_749
official a
named vertexCount
intermediary comp_750
official b
named indexCount
intermediary comp_751
official c
named mode
intermediary comp_752
official d
named indexType
intermediary comp_753
official e
named indexOnly
intermediary comp_754
official f
named sequentialIndex
intermediary comp_755
official g
  • Field Details

    • format

      private final VertexFormat format
      The field for the format record component.
    • vertexCount

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

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

      private final VertexFormat.DrawMode mode
      The field for the mode record component.
    • indexType

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

      private final boolean indexOnly
      The field for the indexOnly record component.
    • sequentialIndex

      private final boolean sequentialIndex
      The field for the sequentialIndex record component.
  • Constructor Details

  • Method Details

    • getVertexBufferSize

      public int getVertexBufferSize()
      Mappings:
      Namespace Name Mixin selector
      named getVertexBufferSize Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferSize()I
      intermediary method_31957 Lnet/minecraft/class_287$class_4574;method_31957()I
      official a Lfaj$a;a()I
    • getVertexBufferStart

      public int getVertexBufferStart()
      Mappings:
      Namespace Name Mixin selector
      named getVertexBufferStart Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferStart()I
      intermediary method_43429 Lnet/minecraft/class_287$class_4574;method_43429()I
      official b Lfaj$a;b()I
    • getVertexBufferEnd

      public int getVertexBufferEnd()
      Mappings:
      Namespace Name Mixin selector
      named getVertexBufferEnd Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getVertexBufferEnd()I
      intermediary method_43430 Lnet/minecraft/class_287$class_4574;method_43430()I
      official c Lfaj$a;c()I
    • getIndexBufferStart

      public int getIndexBufferStart()
      Mappings:
      Namespace Name Mixin selector
      named getIndexBufferStart Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getIndexBufferStart()I
      intermediary method_43431 Lnet/minecraft/class_287$class_4574;method_43431()I
      official d Lfaj$a;d()I
    • getIndexBufferEnd

      public int getIndexBufferEnd()
      Mappings:
      Namespace Name Mixin selector
      named getIndexBufferEnd Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getIndexBufferEnd()I
      intermediary method_43432 Lnet/minecraft/class_287$class_4574;method_43432()I
      official e Lfaj$a;e()I
    • getIndexBufferSize

      private int getIndexBufferSize()
      Mappings:
      Namespace Name Mixin selector
      named getIndexBufferSize Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getIndexBufferSize()I
      intermediary method_31961 Lnet/minecraft/class_287$class_4574;method_31961()I
      official n Lfaj$a;n()I
    • getBufferSize

      public int getBufferSize()
      Returns the total size of the index buffer and the vertex buffer combined.
      Returns:
      the total size of the index buffer and the vertex buffer combined
      Mappings:
      Namespace Name Mixin selector
      named getBufferSize Lnet/minecraft/client/render/BufferBuilder$DrawParameters;getBufferSize()I
      intermediary method_31958 Lnet/minecraft/class_287$class_4574;method_31958()I
      official f Lfaj$a;f()I
    • 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 object)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • format

      public VertexFormat format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • vertexCount

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

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

      public VertexFormat.DrawMode mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • indexType

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

      public boolean indexOnly()
      Returns the value of the indexOnly record component.
      Returns:
      the value of the indexOnly record component
    • sequentialIndex

      public boolean sequentialIndex()
      Returns the value of the sequentialIndex record component.
      Returns:
      the value of the sequentialIndex record component