Package com.mojang.blaze3d.systems
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The field for thefirstIndex
record component.The field for theindexBuffer
record component.private final int
The field for theindexCount
record component.private final VertexFormat.IndexType
The field for theindexType
record component.private final int
The field for theslot
record component.private final @Nullable BiConsumer
<T, RenderPass.UniformUploader> The field for theuniformUploaderConsumer
record component.private final GpuBuffer
The field for thevertexBuffer
record component. -
Constructor Summary
ConstructorsConstructorDescriptionRenderObject
(int int2, GpuBuffer gpuBuffer, @Nullable GpuBuffer gpuBuffer2, VertexFormat.IndexType indexType, int int3, int int4, @Nullable BiConsumer<T, RenderPass.UniformUploader> biConsumer) RenderObject
(int slot, GpuBuffer vertexBuffer, GpuBuffer indexBuffer, VertexFormat.IndexType indexType, int firstIndex, int indexCount) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefirstIndex
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theindexBuffer
record component.int
Returns the value of theindexCount
record component.Returns the value of theindexType
record component.int
slot()
Returns the value of theslot
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuniformUploaderConsumer
record component.Returns the value of thevertexBuffer
record component.
-
Field Details
-
slot
private final int slotThe field for theslot
record component. -
vertexBuffer
The field for thevertexBuffer
record component. -
indexBuffer
The field for theindexBuffer
record component. -
indexType
The field for theindexType
record component. -
firstIndex
private final int firstIndexThe field for thefirstIndex
record component. -
indexCount
private final int indexCountThe field for theindexCount
record component. -
uniformUploaderConsumer
The field for theuniformUploaderConsumer
record component.
-
-
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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
slot
public int slot()Returns the value of theslot
record component.- Returns:
- the value of the
slot
record component
-
vertexBuffer
Returns the value of thevertexBuffer
record component.- Returns:
- the value of the
vertexBuffer
record component
-
indexBuffer
Returns the value of theindexBuffer
record component.- Returns:
- the value of the
indexBuffer
record component
-
indexType
Returns the value of theindexType
record component.- Returns:
- the value of the
indexType
record component
-
firstIndex
public int firstIndex()Returns the value of thefirstIndex
record component.- Returns:
- the value of the
firstIndex
record component
-
indexCount
public int indexCount()Returns the value of theindexCount
record component.- Returns:
- the value of the
indexCount
record component
-
uniformUploaderConsumer
Returns the value of theuniformUploaderConsumer
record component.- Returns:
- the value of the
uniformUploaderConsumer
record component
-