Package net.minecraft.client.gui.render
Record Class GuiRenderer.Draw
java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.GuiRenderer.Draw
- Record Components:
vertexBuffer-baseVertex-mode-indexCount-pipeline-textureSetup-scissorArea-
- Enclosing class:
GuiRenderer
@Environment(CLIENT)
private static record GuiRenderer.Draw(GpuBuffer vertexBuffer, int baseVertex, VertexFormat.DrawMode mode, int indexCount, RenderPipeline pipeline, TextureSetup textureSetup, @Nullable ScreenRect scissorArea)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/gui/render/GuiRenderer$Drawintermediary net/minecraft/class_11228$class_11230official gjx$bnamed vertexBufferintermediary comp_4044official anamed baseVertexintermediary comp_4186official bnamed modeintermediary comp_4045official cnamed indexCountintermediary comp_4048official dnamed pipelineintermediary comp_4049official enamed textureSetupintermediary comp_4050official fnamed scissorAreaintermediary comp_4051official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebaseVertexrecord component.private final intThe field for theindexCountrecord component.private final VertexFormat.DrawModeThe field for themoderecord component.private final RenderPipelineThe field for thepipelinerecord component.private final @Nullable ScreenRectThe field for thescissorArearecord component.private final TextureSetupThe field for thetextureSetuprecord component.private final GpuBufferThe field for thevertexBufferrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDraw(GpuBuffer gpuBuffer, int int2, VertexFormat.DrawMode drawMode, int int3, RenderPipeline renderPipeline, TextureSetup textureSetup, @Nullable ScreenRect screenRect) -
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.Returns 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
-
Draw
Draw(GpuBuffer gpuBuffer, int int2, VertexFormat.DrawMode drawMode, int int3, RenderPipeline renderPipeline, TextureSetup textureSetup, @Nullable @Nullable ScreenRect screenRect)
-
-
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 '=='. -
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
-