Record Class PostEffectPass.TextureSampler

java.lang.Object
java.lang.Record
net.minecraft.client.gl.PostEffectPass.TextureSampler
Record Components:
samplerName -
texture -
width -
height -
All Implemented Interfaces:
PostEffectPass.Sampler
Enclosing class:
PostEffectPass

@Environment(CLIENT) public static record PostEffectPass.TextureSampler(String samplerName, AbstractTexture texture, int width, int height) extends Record implements PostEffectPass.Sampler
Mappings:
Namespace Name
named net/minecraft/client/gl/PostEffectPass$TextureSampler
intermediary net/minecraft/class_283$class_9973
official glq$c
named samplerName
intermediary comp_3038
official a
named texture
intermediary comp_3039
official b
named width
intermediary comp_3040
official c
named height
intermediary comp_3041
official d
  • Field Details

    • samplerName

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

      private final AbstractTexture texture
      The field for the texture record component.
    • width

      private final int width
      The field for the width record component.
    • height

      private final int height
      The field for the height record component.
  • Constructor Details

    • TextureSampler

      public TextureSampler(String string, AbstractTexture abstractTexture, int int2, int int3)
  • Method Details

    • preRender

      public void preRender(RenderPass pass, Map<Identifier,Handle<Framebuffer>> internalTargets)
      Specified by:
      preRender in interface PostEffectPass.Sampler
      Mappings:
      Namespace Name Mixin selector
      named preRender Lnet/minecraft/client/gl/PostEffectPass$Sampler;preRender(Lnet/minecraft/client/render/RenderPass;Ljava/util/Map;)V
      intermediary method_62259 Lnet/minecraft/class_283$class_9971;method_62259(Lnet/minecraft/class_9916;Ljava/util/Map;)V
      official a Lglq$a;a(Lfew;Ljava/util/Map;)V
    • bind

      public void bind(ShaderProgram program, Map<Identifier,Handle<Framebuffer>> internalTargets)
      Specified by:
      bind in interface PostEffectPass.Sampler
      Mappings:
      Namespace Name Mixin selector
      named bind Lnet/minecraft/client/gl/PostEffectPass$Sampler;bind(Lnet/minecraft/client/gl/ShaderProgram;Ljava/util/Map;)V
      intermediary method_62260 Lnet/minecraft/class_283$class_9971;method_62260(Lnet/minecraft/class_5944;Ljava/util/Map;)V
      official a Lglq$a;a(Lgkt;Ljava/util/Map;)V
    • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • samplerName

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

      public AbstractTexture texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component
    • width

      public int width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component