Record Class ScreenEffectDefinition.Pass

java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.api.client.effect.ScreenEffectDefinition.Pass
Record Components:
program - assets/<namespace>/shaders/program/<path>.json ("name")
input - the target read as DiffuseSampler ("intarget")
output - the target drawn into ("outtarget")
auxTargets - more targets and textures to read ("auxtargets")
uniforms - values for the program's uniforms, overriding its defaults
bilinear - whether the input is sampled with linear filtering
Enclosing class:
ScreenEffectDefinition

public static record ScreenEffectDefinition.Pass(net.minecraft.resources.ResourceLocation program, net.minecraft.resources.ResourceLocation input, net.minecraft.resources.ResourceLocation output, List<ScreenEffectDefinition.AuxTarget> auxTargets, List<ScreenEffectDefinition.UniformSpec> uniforms, boolean bilinear) extends Record
One draw of a program over its output target.
  • Field Details

  • Constructor Details

    • Pass

      public Pass(net.minecraft.resources.ResourceLocation program, net.minecraft.resources.ResourceLocation input, net.minecraft.resources.ResourceLocation output, List<ScreenEffectDefinition.AuxTarget> auxTargets, List<ScreenEffectDefinition.UniformSpec> uniforms, boolean bilinear)
      Creates an instance of a Pass record class.
      Parameters:
      program - the value for the program record component
      input - the value for the input record component
      output - the value for the output record component
      auxTargets - the value for the auxTargets record component
      uniforms - the value for the uniforms record component
      bilinear - the value for the bilinear record component
  • Method Details

    • referencedTargets

      public Set<net.minecraft.resources.ResourceLocation> referencedTargets(ScreenEffectDefinition definition)
    • 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.
    • program

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

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

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

      public List<ScreenEffectDefinition.AuxTarget> auxTargets()
      Returns the value of the auxTargets record component.
      Returns:
      the value of the auxTargets record component
    • uniforms

      Returns the value of the uniforms record component.
      Returns:
      the value of the uniforms record component
    • bilinear

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