Record Class ScreenEffectDefinition.Pass
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.api.client.effect.ScreenEffectDefinition.Pass
- Record Components:
uniforms- the pass's uniforms, grouped under names of the author's choosing
- Enclosing class:
ScreenEffectDefinition
public static record ScreenEffectDefinition.Pass(net.minecraft.resources.ResourceLocation vertexShader, net.minecraft.resources.ResourceLocation fragmentShader, List<ScreenEffectDefinition.Input> inputs, net.minecraft.resources.ResourceLocation output, Map<String,List<ScreenEffectDefinition.UniformSpec>> uniforms)
extends Record
One draw of a fragment shader over its output target.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ScreenEffectDefinition.Pass> -
Constructor Summary
ConstructorsConstructorDescriptionPass(net.minecraft.resources.ResourceLocation vertexShader, net.minecraft.resources.ResourceLocation fragmentShader, List<ScreenEffectDefinition.Input> inputs, net.minecraft.resources.ResourceLocation output, Map<String, List<ScreenEffectDefinition.UniformSpec>> uniforms) Creates an instance of aPassrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.ResourceLocationReturns the value of thefragmentShaderrecord component.final inthashCode()Returns a hash code value for this object.inputs()Returns the value of theinputsrecord component.net.minecraft.resources.ResourceLocationoutput()Returns the value of theoutputrecord component.Set<net.minecraft.resources.ResourceLocation> final StringtoString()Returns a string representation of this record class.uniforms()Returns the value of theuniformsrecord component.net.minecraft.resources.ResourceLocationReturns the value of thevertexShaderrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Pass
public Pass(net.minecraft.resources.ResourceLocation vertexShader, net.minecraft.resources.ResourceLocation fragmentShader, List<ScreenEffectDefinition.Input> inputs, net.minecraft.resources.ResourceLocation output, Map<String, List<ScreenEffectDefinition.UniformSpec>> uniforms) Creates an instance of aPassrecord class.- Parameters:
vertexShader- the value for thevertexShaderrecord componentfragmentShader- the value for thefragmentShaderrecord componentinputs- the value for theinputsrecord componentoutput- the value for theoutputrecord componentuniforms- the value for theuniformsrecord component
-
-
Method Details
-
referencedTargets
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
vertexShader
public net.minecraft.resources.ResourceLocation vertexShader()Returns the value of thevertexShaderrecord component.- Returns:
- the value of the
vertexShaderrecord component
-
fragmentShader
public net.minecraft.resources.ResourceLocation fragmentShader()Returns the value of thefragmentShaderrecord component.- Returns:
- the value of the
fragmentShaderrecord component
-
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-
output
public net.minecraft.resources.ResourceLocation output()Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
uniforms
Returns the value of theuniformsrecord component.- Returns:
- the value of the
uniformsrecord component
-