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 asDiffuseSampler("intarget")output- the target drawn into ("outtarget")auxTargets- more targets and textures to read ("auxtargets")uniforms- values for the program's uniforms, overriding its defaultsbilinear- 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ScreenEffectDefinition.Pass> -
Constructor Summary
ConstructorsConstructorDescriptionPass(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 aPassrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauxTargetsrecord component.booleanbilinear()Returns the value of thebilinearrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationinput()Returns the value of theinputrecord component.net.minecraft.resources.ResourceLocationoutput()Returns the value of theoutputrecord component.net.minecraft.resources.ResourceLocationprogram()Returns the value of theprogramrecord component.Set<net.minecraft.resources.ResourceLocation>referencedTargets(ScreenEffectDefinition definition) final StringtoString()Returns a string representation of this record class.uniforms()Returns the value of theuniformsrecord component.
-
Field Details
-
CODEC
-
-
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 aPassrecord class.- Parameters:
program- the value for theprogramrecord componentinput- the value for theinputrecord componentoutput- the value for theoutputrecord componentauxTargets- the value for theauxTargetsrecord componentuniforms- the value for theuniformsrecord componentbilinear- the value for thebilinearrecord component
-
-
Method Details
-
referencedTargets
public Set<net.minecraft.resources.ResourceLocation> referencedTargets(ScreenEffectDefinition definition) -
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
program
public net.minecraft.resources.ResourceLocation program()Returns the value of theprogramrecord component.- Returns:
- the value of the
programrecord component
-
input
public net.minecraft.resources.ResourceLocation input()Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
output
public net.minecraft.resources.ResourceLocation output()Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
auxTargets
Returns the value of theauxTargetsrecord component.- Returns:
- the value of the
auxTargetsrecord component
-
uniforms
Returns the value of theuniformsrecord component.- Returns:
- the value of the
uniformsrecord component
-
bilinear
public boolean bilinear()Returns the value of thebilinearrecord component.- Returns:
- the value of the
bilinearrecord component
-