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-mode-indexBuffer-indexType-indexCount-pipeline-textureSetup-scissorArea-
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
GuiRenderer
@Environment(CLIENT)
private static record GuiRenderer.Draw(GpuBuffer vertexBuffer, VertexFormat.DrawMode mode, @Nullable GpuBuffer indexBuffer, VertexFormat.IndexType indexType, int indexCount, RenderPipeline pipeline, TextureSetup textureSetup, @Nullable ScreenRect scissorArea)
extends Record
implements AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/gui/render/GuiRenderer$Drawintermediary net/minecraft/class_11228$class_11230official fzd$bnamed vertexBufferintermediary comp_4044official anamed modeintermediary comp_4045official bnamed indexBufferintermediary comp_4046official cnamed indexTypeintermediary comp_4047official dnamed indexCountintermediary comp_4048official enamed pipelineintermediary comp_4049official fnamed textureSetupintermediary comp_4050official gnamed scissorAreaintermediary comp_4051official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theindexBufferrecord component.private final intThe field for theindexCountrecord component.private final VertexFormat.IndexTypeThe field for theindexTyperecord 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, VertexFormat.DrawMode drawMode, @Nullable GpuBuffer gpuBuffer2, VertexFormat.IndexType indexType, int int2, RenderPipeline renderPipeline, TextureSetup textureSetup, @Nullable ScreenRect screenRect) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.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.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. -
mode
The field for themoderecord component. -
indexBuffer
The field for theindexBufferrecord component. -
indexType
The field for theindexTyperecord 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, VertexFormat.DrawMode drawMode, @Nullable @Nullable GpuBuffer gpuBuffer2, @Nullable VertexFormat.IndexType indexType, int int2, RenderPipeline renderPipeline, TextureSetup textureSetup, @Nullable @Nullable ScreenRect screenRect)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord 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
-
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
-