Record Class PreparedRenderType
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.rendertype.PreparedRenderType
public record PreparedRenderType(String name, RenderPipeline pipeline, @Nullable OitPipelineSet oitPipelineSet, 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 StringThe field for thenamerecord component.private final @Nullable OitPipelineSetThe field for theoitPipelineSetrecord 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(String name, RenderPipeline pipeline, @Nullable OitPipelineSet oitPipelineSet, GpuBufferSlice dynamicTransforms, ScissorState scissorState, List<PreparedRenderType.Texture> textures) Creates an instance of aPreparedRenderTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddraw(StagedVertexBuffer.ExecuteInfo info, RenderPass renderPass, RenderPipeline renderPipeline) voiddrawFromBuffer(StagedVertexBuffer.ExecuteInfo info, RenderPass renderPass) voiddrawFromBufferOit(StagedVertexBuffer.ExecuteInfo info, OitStage stage, RenderPass renderPass) Returns 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.name()Returns the value of thenamerecord component.Returns the value of theoitPipelineSetrecord 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
-
name
The field for thenamerecord component. -
pipeline
The field for thepipelinerecord component. -
oitPipelineSet
The field for theoitPipelineSetrecord component. -
dynamicTransforms
The field for thedynamicTransformsrecord component. -
scissorState
The field for thescissorStaterecord component. -
textures
The field for thetexturesrecord component.
-
-
Constructor Details
-
PreparedRenderType
public PreparedRenderType(String name, RenderPipeline pipeline, @Nullable OitPipelineSet oitPipelineSet, GpuBufferSlice dynamicTransforms, ScissorState scissorState, List<PreparedRenderType.Texture> textures) Creates an instance of aPreparedRenderTyperecord class.- Parameters:
name- the value for thenamerecord componentpipeline- the value for thepipelinerecord componentoitPipelineSet- the value for theoitPipelineSetrecord componentdynamicTransforms- the value for thedynamicTransformsrecord componentscissorState- the value for thescissorStaterecord componenttextures- the value for thetexturesrecord component
-
-
Method Details
-
drawFromBuffer
-
drawFromBufferOit
public void drawFromBufferOit(StagedVertexBuffer.ExecuteInfo info, OitStage stage, RenderPass renderPass) -
draw
private void draw(StagedVertexBuffer.ExecuteInfo info, RenderPass renderPass, RenderPipeline renderPipeline) -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
pipeline
Returns the value of thepipelinerecord component.- Returns:
- the value of the
pipelinerecord component
-
oitPipelineSet
Returns the value of theoitPipelineSetrecord component.- Returns:
- the value of the
oitPipelineSetrecord 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
-