Record Class RenderPass.Draw

java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.RenderPass.Draw
Enclosing interface:
RenderPass

public static record RenderPass.Draw(int slot, GpuBuffer vertexBuffer, @Nullable GpuBuffer indexBuffer, @Nullable VertexFormat.IndexType indexType, int firstIndex, int indexCount, @Nullable Consumer<RenderPass.UniformUploader> uniformUploaderConsumer) extends Record
  • Field Details

    • slot

      private final int slot
      The field for the slot record component.
    • vertexBuffer

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

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

      @Nullable private final VertexFormat.IndexType indexType
      The field for the indexType 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.
    • uniformUploaderConsumer

      @Nullable private final Consumer<RenderPass.UniformUploader> uniformUploaderConsumer
      The field for the uniformUploaderConsumer record component.
  • Constructor Details

    • Draw

      public Draw(int p_409953_, GpuBuffer p_410253_, GpuBuffer p_410419_, VertexFormat.IndexType p_410538_, int p_410203_, int p_410514_)
    • Draw

      public Draw(int slot, GpuBuffer vertexBuffer, @Nullable GpuBuffer indexBuffer, @Nullable VertexFormat.IndexType indexType, int firstIndex, int indexCount, @Nullable Consumer<RenderPass.UniformUploader> uniformUploaderConsumer)
      Creates an instance of a Draw record class.
      Parameters:
      slot - the value for the slot record component
      vertexBuffer - the value for the vertexBuffer record component
      indexBuffer - the value for the indexBuffer record component
      indexType - the value for the indexType record component
      firstIndex - the value for the firstIndex record component
      indexCount - the value for the indexCount record component
      uniformUploaderConsumer - the value for the uniformUploaderConsumer 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 '=='.
      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.
    • slot

      public int slot()
      Returns the value of the slot record component.
      Returns:
      the value of the slot record component
    • vertexBuffer

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

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

      @Nullable public VertexFormat.IndexType indexType()
      Returns the value of the indexType record component.
      Returns:
      the value of the indexType 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
    • uniformUploaderConsumer

      @Nullable public Consumer<RenderPass.UniformUploader> uniformUploaderConsumer()
      Returns the value of the uniformUploaderConsumer record component.
      Returns:
      the value of the uniformUploaderConsumer record component