Package net.minecraft.client.renderer
Record Class ShaderProgramConfig
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.ShaderProgramConfig
public record ShaderProgramConfig(ResourceLocation vertex, ResourceLocation fragment, List<ShaderProgramConfig.Sampler> samplers, List<ShaderProgramConfig.Uniform> uniforms, ShaderDefines defines)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ShaderProgramConfig> private final ShaderDefines
The field for thedefines
record component.private final ResourceLocation
The field for thefragment
record component.private final List
<ShaderProgramConfig.Sampler> The field for thesamplers
record component.private final List
<ShaderProgramConfig.Uniform> The field for theuniforms
record component.private final ResourceLocation
The field for thevertex
record component. -
Constructor Summary
ConstructorsConstructorDescriptionShaderProgramConfig
(ResourceLocation vertex, ResourceLocation fragment, List<ShaderProgramConfig.Sampler> samplers, List<ShaderProgramConfig.Uniform> uniforms, ShaderDefines defines) Creates an instance of aShaderProgramConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptiondefines()
Returns the value of thedefines
record component.final boolean
Indicates whether some other object is "equal to" this one.fragment()
Returns the value of thefragment
record component.final int
hashCode()
Returns a hash code value for this object.samplers()
Returns the value of thesamplers
record component.final String
toString()
Returns a string representation of this record class.uniforms()
Returns the value of theuniforms
record component.vertex()
Returns the value of thevertex
record component.
-
Field Details
-
vertex
The field for thevertex
record component. -
fragment
The field for thefragment
record component. -
samplers
The field for thesamplers
record component. -
uniforms
The field for theuniforms
record component. -
defines
The field for thedefines
record component. -
CODEC
-
-
Constructor Details
-
ShaderProgramConfig
public ShaderProgramConfig(ResourceLocation vertex, ResourceLocation fragment, List<ShaderProgramConfig.Sampler> samplers, List<ShaderProgramConfig.Uniform> uniforms, ShaderDefines defines) Creates an instance of aShaderProgramConfig
record class.- Parameters:
vertex
- the value for thevertex
record componentfragment
- the value for thefragment
record componentsamplers
- the value for thesamplers
record componentuniforms
- the value for theuniforms
record componentdefines
- the value for thedefines
record component
-
-
Method Details
-
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)
. -
vertex
Returns the value of thevertex
record component.- Returns:
- the value of the
vertex
record component
-
fragment
Returns the value of thefragment
record component.- Returns:
- the value of the
fragment
record component
-
samplers
Returns the value of thesamplers
record component.- Returns:
- the value of the
samplers
record component
-
uniforms
Returns the value of theuniforms
record component.- Returns:
- the value of the
uniforms
record component
-
defines
Returns the value of thedefines
record component.- Returns:
- the value of the
defines
record component
-