Package com.mojang.blaze3d.systems
Record Class RenderPass.RenderObject
java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.RenderPass.RenderObject
- Record Components:
slot-vertexBuffer-indexBuffer-indexType-firstIndex-indexCount-uniformUploaderConsumer-
- Enclosing interface:
RenderPass
@Environment(CLIENT)
public static record RenderPass.RenderObject(int slot, GpuBuffer vertexBuffer, @Nullable GpuBuffer indexBuffer, VertexFormat.IndexType indexType, int firstIndex, int indexCount, @Nullable Consumer<RenderPass.UniformUploader> uniformUploaderConsumer)
extends Record
- Mappings:
Namespace Name named com/mojang/blaze3d/systems/RenderPass$RenderObjectintermediary com/mojang/blaze3d/systems/RenderPass$class_10884official com/mojang/blaze3d/systems/RenderPass$anamed slotintermediary comp_3804official anamed vertexBufferintermediary comp_3805official bnamed indexBufferintermediary comp_3806official cnamed indexTypeintermediary comp_3807official dnamed firstIndexintermediary comp_3808official enamed indexCountintermediary comp_3809official fnamed uniformUploaderConsumerintermediary comp_3810official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thefirstIndexrecord component.The field for theindexBufferrecord component.private final intThe field for theindexCountrecord component.private final VertexFormat.IndexTypeThe field for theindexTyperecord component.private final intThe field for theslotrecord component.private final @Nullable Consumer<RenderPass.UniformUploader> The field for theuniformUploaderConsumerrecord component.private final GpuBufferThe field for thevertexBufferrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRenderObject(int int2, GpuBuffer gpuBuffer, @Nullable GpuBuffer gpuBuffer2, VertexFormat.IndexType indexType, int int3, int int4, @Nullable Consumer<RenderPass.UniformUploader> consumer) RenderObject(int slot, GpuBuffer vertexBuffer, GpuBuffer indexBuffer, VertexFormat.IndexType indexType, int firstIndex, int indexCount) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstIndexrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theindexBufferrecord component.intReturns the value of theindexCountrecord component.Returns the value of theindexTyperecord component.intslot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuniformUploaderConsumerrecord component.Returns the value of thevertexBufferrecord component.
-
Field Details
-
slot
private final int slotThe field for theslotrecord component. -
vertexBuffer
The field for thevertexBufferrecord component. -
indexBuffer
The field for theindexBufferrecord component. -
indexType
The field for theindexTyperecord component. -
firstIndex
private final int firstIndexThe field for thefirstIndexrecord component. -
indexCount
private final int indexCountThe field for theindexCountrecord component. -
uniformUploaderConsumer
The field for theuniformUploaderConsumerrecord 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)Vintermediary <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)Vofficial <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 Consumer<RenderPass.UniformUploader> consumer)
-
-
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 theslotrecord component.- Returns:
- the value of the
slotrecord component
-
vertexBuffer
Returns the value of thevertexBufferrecord component.- Returns:
- the value of the
vertexBufferrecord component
-
indexBuffer
Returns the value of theindexBufferrecord component.- Returns:
- the value of the
indexBufferrecord component
-
indexType
Returns the value of theindexTyperecord component.- Returns:
- the value of the
indexTyperecord component
-
firstIndex
public int firstIndex()Returns the value of thefirstIndexrecord component.- Returns:
- the value of the
firstIndexrecord component
-
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-
uniformUploaderConsumer
Returns the value of theuniformUploaderConsumerrecord component.- Returns:
- the value of the
uniformUploaderConsumerrecord component
-