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
  • 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 a Pipeline record class.
      Parameters:
      vertexMain - the value for the vertexMain record component
      fragmentMain - the value for the fragmentMain record component
      assembler - the value for the assembler record component
      compilerMarker - the value for the compilerMarker record component
      onLink - the value for the onLink record component
  • Method Details

    • builder

      public static Pipeline.Builder builder()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • vertexMain

      public net.minecraft.resources.ResourceLocation vertexMain()
      Returns the value of the vertexMain record component.
      Returns:
      the value of the vertexMain record component
    • fragmentMain

      public net.minecraft.resources.ResourceLocation fragmentMain()
      Returns the value of the fragmentMain record component.
      Returns:
      the value of the fragmentMain record component
    • assembler

      public Pipeline.InstanceAssembler assembler()
      Returns the value of the assembler record component.
      Returns:
      the value of the assembler record component
    • compilerMarker

      public String compilerMarker()
      Returns the value of the compilerMarker record component.
      Returns:
      the value of the compilerMarker record component
    • onLink

      public Consumer<GlProgram> onLink()
      Returns the value of the onLink record component.
      Returns:
      the value of the onLink record component