Record Class GuiRenderer.Draw
java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.GuiRenderer.Draw
- Enclosing class:
GuiRenderer
private static record GuiRenderer.Draw(GpuBuffer vertexBuffer, int baseVertex, VertexFormat.Mode mode, int indexCount, RenderPipeline pipeline, TextureSetup textureSetup, @Nullable ScreenRectangle scissorArea)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebaseVertexrecord component.private final intThe field for theindexCountrecord component.private final VertexFormat.ModeThe field for themoderecord component.private final RenderPipelineThe field for thepipelinerecord component.private final @Nullable ScreenRectangleThe field for thescissorArearecord component.private final TextureSetupThe field for thetextureSetuprecord component.private final GpuBufferThe field for thevertexBufferrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDraw(GpuBuffer vertexBuffer, int baseVertex, VertexFormat.Mode mode, int indexCount, RenderPipeline pipeline, TextureSetup textureSetup, @Nullable ScreenRectangle scissorArea) Creates an instance of aDrawrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebaseVertexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexCountrecord component.mode()Returns the value of themoderecord component.pipeline()Returns the value of thepipelinerecord component.@Nullable ScreenRectangleReturns the value of thescissorArearecord component.Returns the value of thetextureSetuprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevertexBufferrecord component.
-
Field Details
-
vertexBuffer
The field for thevertexBufferrecord component. -
baseVertex
private final int baseVertexThe field for thebaseVertexrecord component. -
mode
The field for themoderecord component. -
indexCount
private final int indexCountThe field for theindexCountrecord component. -
pipeline
The field for thepipelinerecord component. -
textureSetup
The field for thetextureSetuprecord component. -
scissorArea
The field for thescissorArearecord component.
-
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
vertexBuffer
Returns the value of thevertexBufferrecord component.- Returns:
- the value of the
vertexBufferrecord component
-
baseVertex
public int baseVertex()Returns the value of thebaseVertexrecord component.- Returns:
- the value of the
baseVertexrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-
pipeline
Returns the value of thepipelinerecord component.- Returns:
- the value of the
pipelinerecord component
-
textureSetup
Returns the value of thetextureSetuprecord component.- Returns:
- the value of the
textureSetuprecord component
-
scissorArea
Returns the value of thescissorArearecord component.- Returns:
- the value of the
scissorArearecord component
-