Record Class PreparedRenderType
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.rendertype.PreparedRenderType
public record PreparedRenderType(RenderPipeline pipeline, OutputTarget outputTarget, GpuBufferSlice dynamicTransforms, ScissorState scissorState, List<PreparedRenderType.Texture> textures)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuBufferSliceThe field for thedynamicTransformsrecord component.private final OutputTargetThe field for theoutputTargetrecord component.private final RenderPipelineThe field for thepipelinerecord component.private final ScissorStateThe field for thescissorStaterecord component.private final List<PreparedRenderType.Texture> The field for thetexturesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPreparedRenderType(RenderPipeline pipeline, OutputTarget outputTarget, GpuBufferSlice dynamicTransforms, ScissorState scissorState, List<PreparedRenderType.Texture> textures) Creates an instance of aPreparedRenderTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawFromBuffer(GpuBuffer vertexBuffer, GpuBuffer indexBuffer, IndexType indexType, int baseVertex, int firstIndex, int indexCount) voidReturns the value of thedynamicTransformsrecord component.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 theoutputTargetrecord component.pipeline()Returns the value of thepipelinerecord component.Returns the value of thescissorStaterecord component.textures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pipeline
The field for thepipelinerecord component. -
outputTarget
The field for theoutputTargetrecord component. -
dynamicTransforms
The field for thedynamicTransformsrecord component. -
scissorState
The field for thescissorStaterecord component. -
textures
The field for thetexturesrecord component.
-
-
Constructor Details
-
PreparedRenderType
public PreparedRenderType(RenderPipeline pipeline, OutputTarget outputTarget, GpuBufferSlice dynamicTransforms, ScissorState scissorState, List<PreparedRenderType.Texture> textures) Creates an instance of aPreparedRenderTyperecord class.- Parameters:
pipeline- the value for thepipelinerecord componentoutputTarget- the value for theoutputTargetrecord componentdynamicTransforms- the value for thedynamicTransformsrecord componentscissorState- the value for thescissorStaterecord componenttextures- the value for thetexturesrecord component
-
-
Method Details
-
drawFromBuffer
-
drawFromBuffer
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
pipeline
Returns the value of thepipelinerecord component.- Returns:
- the value of the
pipelinerecord component
-
outputTarget
Returns the value of theoutputTargetrecord component.- Returns:
- the value of the
outputTargetrecord component
-
dynamicTransforms
Returns the value of thedynamicTransformsrecord component.- Returns:
- the value of the
dynamicTransformsrecord component
-
scissorState
Returns the value of thescissorStaterecord component.- Returns:
- the value of the
scissorStaterecord component
-
textures
Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-