Record Class Pipeline
java.lang.Object
java.lang.Record
dev.engine_room.flywheel.backend.compile.Pipeline
public record Pipeline(net.minecraft.resources.ResourceLocation vertexMain, net.minecraft.resources.ResourceLocation fragmentMain, Pipeline.InstanceAssembler assembler, String compilerMarker, Consumer<GlProgram> onLink)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionPipeline(net.minecraft.resources.ResourceLocation vertexMain, net.minecraft.resources.ResourceLocation fragmentMain, Pipeline.InstanceAssembler assembler, String compilerMarker, Consumer<GlProgram> onLink) Creates an instance of aPipelinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassemblerrecord component.static Pipeline.Builderbuilder()Returns the value of thecompilerMarkerrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.ResourceLocationReturns the value of thefragmentMainrecord component.final inthashCode()Returns a hash code value for this object.onLink()Returns the value of theonLinkrecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.resources.ResourceLocationReturns the value of thevertexMainrecord component.
-
Constructor Details
-
Pipeline
public Pipeline(net.minecraft.resources.ResourceLocation vertexMain, net.minecraft.resources.ResourceLocation fragmentMain, Pipeline.InstanceAssembler assembler, String compilerMarker, Consumer<GlProgram> onLink) Creates an instance of aPipelinerecord class.- Parameters:
vertexMain- the value for thevertexMainrecord componentfragmentMain- the value for thefragmentMainrecord componentassembler- the value for theassemblerrecord componentcompilerMarker- the value for thecompilerMarkerrecord componentonLink- the value for theonLinkrecord component
-
-
Method Details
-
builder
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
vertexMain
public net.minecraft.resources.ResourceLocation vertexMain()Returns the value of thevertexMainrecord component.- Returns:
- the value of the
vertexMainrecord component
-
fragmentMain
public net.minecraft.resources.ResourceLocation fragmentMain()Returns the value of thefragmentMainrecord component.- Returns:
- the value of the
fragmentMainrecord component
-
assembler
Returns the value of theassemblerrecord component.- Returns:
- the value of the
assemblerrecord component
-
compilerMarker
Returns the value of thecompilerMarkerrecord component.- Returns:
- the value of the
compilerMarkerrecord component
-
onLink
Returns the value of theonLinkrecord component.- Returns:
- the value of the
onLinkrecord component
-