Package net.minecraft.client.renderer
Record Class PostChainConfig.Pass
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.PostChainConfig.Pass
- Enclosing class:
PostChainConfig
public static record PostChainConfig.Pass(ResourceLocation programId, List<PostChainConfig.Input> inputs, ResourceLocation outputTarget, List<PostChainConfig.Uniform> uniforms)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PostChainConfig.Pass> private final List<PostChainConfig.Input> The field for theinputsrecord component.private static final com.mojang.serialization.Codec<List<PostChainConfig.Input>> private final ResourceLocationThe field for theoutputTargetrecord component.private final ResourceLocationThe field for theprogramIdrecord component.private final List<PostChainConfig.Uniform> The field for theuniformsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPass(ResourceLocation programId, List<PostChainConfig.Input> inputs, ResourceLocation outputTarget, List<PostChainConfig.Uniform> uniforms) Creates an instance of aPassrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inputs()Returns the value of theinputsrecord component.Returns the value of theoutputTargetrecord component.program()Returns the value of theprogramIdrecord component.final StringtoString()Returns a string representation of this record class.uniforms()Returns the value of theuniformsrecord component.
-
Field Details
-
programId
The field for theprogramIdrecord component. -
inputs
The field for theinputsrecord component. -
outputTarget
The field for theoutputTargetrecord component. -
uniforms
The field for theuniformsrecord component. -
INPUTS_CODEC
-
CODEC
-
-
Constructor Details
-
Pass
public Pass(ResourceLocation programId, List<PostChainConfig.Input> inputs, ResourceLocation outputTarget, List<PostChainConfig.Uniform> uniforms) Creates an instance of aPassrecord class.- Parameters:
programId- the value for theprogramIdrecord componentinputs- the value for theinputsrecord componentoutputTarget- the value for theoutputTargetrecord componentuniforms- the value for theuniformsrecord component
-
-
Method Details
-
program
-
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). -
programId
Returns the value of theprogramIdrecord component.- Returns:
- the value of the
programIdrecord component
-
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-
outputTarget
Returns the value of theoutputTargetrecord component.- Returns:
- the value of the
outputTargetrecord component
-
uniforms
Returns the value of theuniformsrecord component.- Returns:
- the value of the
uniformsrecord component
-