Record Class PostPass.TargetInput

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.PostPass.TargetInput
All Implemented Interfaces:
PostPass.Input
Enclosing class:
PostPass

public static record PostPass.TargetInput(String samplerName, ResourceLocation targetId, boolean depthBuffer, boolean bilinear) extends Record implements PostPass.Input
  • Field Details

    • samplerName

      private final String samplerName
      The field for the samplerName record component.
    • targetId

      private final ResourceLocation targetId
      The field for the targetId record component.
    • depthBuffer

      private final boolean depthBuffer
      The field for the depthBuffer record component.
    • bilinear

      private final boolean bilinear
      The field for the bilinear record component.
  • Constructor Details

    • TargetInput

      public TargetInput(String samplerName, ResourceLocation targetId, boolean depthBuffer, boolean bilinear)
      Creates an instance of a TargetInput record class.
      Parameters:
      samplerName - the value for the samplerName record component
      targetId - the value for the targetId record component
      depthBuffer - the value for the depthBuffer record component
      bilinear - the value for the bilinear record component
  • Method Details

    • getHandle

    • addToPass

      public void addToPass(FramePass p_364579_, Map<ResourceLocation,ResourceHandle<RenderTarget>> p_360589_)
      Specified by:
      addToPass in interface PostPass.Input
    • bindTo

      public void bindTo(RenderPass p_409676_, Map<ResourceLocation,ResourceHandle<RenderTarget>> p_361239_)
      Specified by:
      bindTo in interface PostPass.Input
    • cleanup

      public void cleanup(Map<ResourceLocation,ResourceHandle<RenderTarget>> p_363172_)
      Specified by:
      cleanup in interface PostPass.Input
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • samplerName

      public String samplerName()
      Returns the value of the samplerName record component.
      Returns:
      the value of the samplerName record component
    • targetId

      public ResourceLocation targetId()
      Returns the value of the targetId record component.
      Returns:
      the value of the targetId record component
    • depthBuffer

      public boolean depthBuffer()
      Returns the value of the depthBuffer record component.
      Returns:
      the value of the depthBuffer record component
    • bilinear

      public boolean bilinear()
      Returns the value of the bilinear record component.
      Returns:
      the value of the bilinear record component