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 vertexShaderId, ResourceLocation fragmentShaderId, 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 ResourceLocation
The field for thefragmentShaderId
record component.private final List
<PostChainConfig.Input> The field for theinputs
record component.private static final com.mojang.serialization.Codec
<List<PostChainConfig.Input>> private final ResourceLocation
The field for theoutputTarget
record component.private final List
<PostChainConfig.Uniform> The field for theuniforms
record component.private final ResourceLocation
The field for thevertexShaderId
record component. -
Constructor Summary
ConstructorsConstructorDescriptionPass
(ResourceLocation vertexShaderId, ResourceLocation fragmentShaderId, List<PostChainConfig.Input> inputs, ResourceLocation outputTarget, List<PostChainConfig.Uniform> uniforms) Creates an instance of aPass
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefragmentShaderId
record component.final int
hashCode()
Returns a hash code value for this object.inputs()
Returns the value of theinputs
record component.Returns the value of theoutputTarget
record component.final String
toString()
Returns a string representation of this record class.uniforms()
Returns the value of theuniforms
record component.Returns the value of thevertexShaderId
record component.
-
Field Details
-
vertexShaderId
The field for thevertexShaderId
record component. -
fragmentShaderId
The field for thefragmentShaderId
record component. -
inputs
The field for theinputs
record component. -
outputTarget
The field for theoutputTarget
record component. -
uniforms
The field for theuniforms
record component. -
INPUTS_CODEC
-
CODEC
-
-
Constructor Details
-
Pass
public Pass(ResourceLocation vertexShaderId, ResourceLocation fragmentShaderId, List<PostChainConfig.Input> inputs, ResourceLocation outputTarget, List<PostChainConfig.Uniform> uniforms) Creates an instance of aPass
record class.- Parameters:
vertexShaderId
- the value for thevertexShaderId
record componentfragmentShaderId
- the value for thefragmentShaderId
record componentinputs
- the value for theinputs
record componentoutputTarget
- the value for theoutputTarget
record componentuniforms
- the value for theuniforms
record 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 thevertexShaderId
record component.- Returns:
- the value of the
vertexShaderId
record component
-
fragmentShaderId
Returns the value of thefragmentShaderId
record component.- Returns:
- the value of the
fragmentShaderId
record component
-
inputs
Returns the value of theinputs
record component.- Returns:
- the value of the
inputs
record component
-
outputTarget
Returns the value of theoutputTarget
record component.- Returns:
- the value of the
outputTarget
record component
-
uniforms
Returns the value of theuniforms
record component.- Returns:
- the value of the
uniforms
record component
-