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(Identifier vertexShaderId, Identifier fragmentShaderId, List<PostChainConfig.Input> inputs, Identifier outputTarget, Map<String,List<UniformValue>> uniforms)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PostChainConfig.Pass> private final IdentifierThe field for thefragmentShaderIdrecord component.private final List<PostChainConfig.Input> The field for theinputsrecord component.private static final com.mojang.serialization.Codec<List<PostChainConfig.Input>> private final IdentifierThe field for theoutputTargetrecord component.private static final com.mojang.serialization.Codec<Map<String, List<UniformValue>>> private final Map<String, List<UniformValue>> The field for theuniformsrecord component.private final IdentifierThe field for thevertexShaderIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPass(Identifier vertexShaderId, Identifier fragmentShaderId, List<PostChainConfig.Input> inputs, Identifier outputTarget, Map<String, List<UniformValue>> uniforms) Creates an instance of aPassrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefragmentShaderIdrecord component.final inthashCode()Returns a hash code value for this object.inputs()Returns the value of theinputsrecord component.Returns the value of theoutputTargetrecord component.final StringtoString()Returns a string representation of this record class.uniforms()Returns the value of theuniformsrecord component.Returns the value of thevertexShaderIdrecord component.
-
Field Details
-
vertexShaderId
The field for thevertexShaderIdrecord component. -
fragmentShaderId
The field for thefragmentShaderIdrecord component. -
inputs
The field for theinputsrecord component. -
outputTarget
The field for theoutputTargetrecord component. -
uniforms
The field for theuniformsrecord component. -
INPUTS_CODEC
-
UNIFORM_BLOCKS_CODEC
private static final com.mojang.serialization.Codec<Map<String,List<UniformValue>>> UNIFORM_BLOCKS_CODEC -
CODEC
-
-
Constructor Details
-
Pass
public Pass(Identifier vertexShaderId, Identifier fragmentShaderId, List<PostChainConfig.Input> inputs, Identifier outputTarget, Map<String, List<UniformValue>> uniforms) Creates an instance of aPassrecord class.- Parameters:
vertexShaderId- the value for thevertexShaderIdrecord componentfragmentShaderId- the value for thefragmentShaderIdrecord componentinputs- the value for theinputsrecord componentoutputTarget- the value for theoutputTargetrecord 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). -
vertexShaderId
Returns the value of thevertexShaderIdrecord component.- Returns:
- the value of the
vertexShaderIdrecord component
-
fragmentShaderId
Returns the value of thefragmentShaderIdrecord component.- Returns:
- the value of the
fragmentShaderIdrecord 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
-