Package com.mojang.blaze3d.systems
Record Class RenderPass.Draw<T>
java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.RenderPass.Draw<T>
- Enclosing interface:
RenderPass
public static record RenderPass.Draw<T>(int slot, GpuBuffer vertexBuffer, @Nullable GpuBuffer indexBuffer, @Nullable VertexFormat.IndexType indexType, int firstIndex, int indexCount, @Nullable BiConsumer<T,RenderPass.UniformUploader> uniformUploaderConsumer)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thefirstIndexrecord component.private final GpuBufferThe 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 BiConsumer<T, RenderPass.UniformUploader> The field for theuniformUploaderConsumerrecord component.private final GpuBufferThe field for thevertexBufferrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDraw(int p_409953_, GpuBuffer p_410253_, GpuBuffer p_410419_, VertexFormat.IndexType p_410538_, int p_410203_, int p_410514_) Draw(int slot, GpuBuffer vertexBuffer, GpuBuffer indexBuffer, VertexFormat.IndexType indexType, int firstIndex, int indexCount, BiConsumer<T, RenderPass.UniformUploader> uniformUploaderConsumer) Creates an instance of aDrawrecord class. -
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
-
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 BiConsumer<T, RenderPass.UniformUploader> uniformUploaderConsumer) Creates an instance of aDrawrecord class.- Parameters:
slot- the value for theslotrecord componentvertexBuffer- the value for thevertexBufferrecord componentindexBuffer- the value for theindexBufferrecord componentindexType- the value for theindexTyperecord componentfirstIndex- the value for thefirstIndexrecord componentindexCount- the value for theindexCountrecord componentuniformUploaderConsumer- the value for theuniformUploaderConsumerrecord component
-
-
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
-