Record Class RenderPass.RenderObject<T>

java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.RenderPass.RenderObject<T>
Record Components:
slot -
vertexBuffer -
indexBuffer -
indexType -
firstIndex -
indexCount -
uniformUploaderConsumer -
Enclosing interface:
RenderPass

@Environment(CLIENT) public static record RenderPass.RenderObject<T>(int slot, GpuBuffer vertexBuffer, @Nullable GpuBuffer indexBuffer, VertexFormat.IndexType indexType, int firstIndex, int indexCount, @Nullable BiConsumer<T,RenderPass.UniformUploader> uniformUploaderConsumer) extends Record
Mappings:
Namespace Name
named com/mojang/blaze3d/systems/RenderPass$RenderObject
intermediary com/mojang/blaze3d/systems/RenderPass$class_10884
official com/mojang/blaze3d/systems/RenderPass$a
named slot
intermediary comp_3804
official a
named vertexBuffer
intermediary comp_3805
official b
named indexBuffer
intermediary comp_3806
official c
named indexType
intermediary comp_3807
official d
named firstIndex
intermediary comp_3808
official e
named indexCount
intermediary comp_3809
official f
named uniformUploaderConsumer
intermediary comp_3810
official g
  • Field Details

  • Constructor Details

    • RenderObject

      public RenderObject(int slot, GpuBuffer vertexBuffer, GpuBuffer indexBuffer, VertexFormat.IndexType indexType, int firstIndex, int indexCount)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lcom/mojang/blaze3d/systems/RenderPass$RenderObject;<init>(ILcom/mojang/blaze3d/buffers/GpuBuffer;Lcom/mojang/blaze3d/buffers/GpuBuffer;Lcom/mojang/blaze3d/vertex/VertexFormat$IndexType;II)V
      intermediary <init> Lcom/mojang/blaze3d/systems/RenderPass$class_10884;<init>(ILcom/mojang/blaze3d/buffers/GpuBuffer;Lcom/mojang/blaze3d/buffers/GpuBuffer;Lcom/mojang/blaze3d/vertex/VertexFormat$class_5595;II)V
      official <init> Lcom/mojang/blaze3d/systems/RenderPass$a;<init>(ILcom/mojang/blaze3d/buffers/GpuBuffer;Lcom/mojang/blaze3d/buffers/GpuBuffer;Lcom/mojang/blaze3d/vertex/VertexFormat$a;II)V
    • RenderObject

      public RenderObject(int int2, GpuBuffer gpuBuffer, @Nullable @Nullable GpuBuffer gpuBuffer2, @Nullable VertexFormat.IndexType indexType, int int3, int int4, @Nullable @Nullable BiConsumer<T,RenderPass.UniformUploader> biConsumer)
  • 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 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.
    • 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 @Nullable 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 @Nullable BiConsumer<T,RenderPass.UniformUploader> uniformUploaderConsumer()
      Returns the value of the uniformUploaderConsumer record component.
      Returns:
      the value of the uniformUploaderConsumer record component