Record Class PostChainConfig.Pass

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.PostChainConfig.Pass
Enclosing class:
PostChainConfig

public static record PostChainConfig.Pass(ResourceLocation vertexShaderId, ResourceLocation fragmentShaderId, List<PostChainConfig.Input> inputs, ResourceLocation outputTarget, List<PostChainConfig.Uniform> uniforms) extends Record
  • Field Details

    • vertexShaderId

      private final ResourceLocation vertexShaderId
      The field for the vertexShaderId record component.
    • fragmentShaderId

      private final ResourceLocation fragmentShaderId
      The field for the fragmentShaderId record component.
    • inputs

      private final List<PostChainConfig.Input> inputs
      The field for the inputs record component.
    • outputTarget

      private final ResourceLocation outputTarget
      The field for the outputTarget record component.
    • uniforms

      private final List<PostChainConfig.Uniform> uniforms
      The field for the uniforms record component.
    • INPUTS_CODEC

      private static final com.mojang.serialization.Codec<List<PostChainConfig.Input>> INPUTS_CODEC
    • CODEC

      public static final com.mojang.serialization.Codec<PostChainConfig.Pass> CODEC
  • Constructor Details

    • Pass

      public Pass(ResourceLocation vertexShaderId, ResourceLocation fragmentShaderId, List<PostChainConfig.Input> inputs, ResourceLocation outputTarget, List<PostChainConfig.Uniform> uniforms)
      Creates an instance of a Pass record class.
      Parameters:
      vertexShaderId - the value for the vertexShaderId record component
      fragmentShaderId - the value for the fragmentShaderId record component
      inputs - the value for the inputs record component
      outputTarget - the value for the outputTarget record component
      uniforms - the value for the uniforms record component
  • Method Details

    • referencedTargets

      public Stream<ResourceLocation> referencedTargets()
    • 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.
    • vertexShaderId

      public ResourceLocation vertexShaderId()
      Returns the value of the vertexShaderId record component.
      Returns:
      the value of the vertexShaderId record component
    • fragmentShaderId

      public ResourceLocation fragmentShaderId()
      Returns the value of the fragmentShaderId record component.
      Returns:
      the value of the fragmentShaderId record component
    • inputs

      public List<PostChainConfig.Input> inputs()
      Returns the value of the inputs record component.
      Returns:
      the value of the inputs record component
    • outputTarget

      public ResourceLocation outputTarget()
      Returns the value of the outputTarget record component.
      Returns:
      the value of the outputTarget record component
    • uniforms

      public List<PostChainConfig.Uniform> uniforms()
      Returns the value of the uniforms record component.
      Returns:
      the value of the uniforms record component