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 recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ShaderProgramConfig> private final ShaderDefinesThe field for thedefinesrecord component.private final ResourceLocationThe field for thefragmentrecord component.private final List<ShaderProgramConfig.Sampler> The field for thesamplersrecord component.private final List<ShaderProgramConfig.Uniform> The field for theuniformsrecord component.private final ResourceLocationThe field for thevertexrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionShaderProgramConfig(ResourceLocation vertex, ResourceLocation fragment, List<ShaderProgramConfig.Sampler> samplers, List<ShaderProgramConfig.Uniform> uniforms, ShaderDefines defines) Creates an instance of aShaderProgramConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefines()Returns the value of thedefinesrecord component.final booleanIndicates whether some other object is "equal to" this one.fragment()Returns the value of thefragmentrecord component.final inthashCode()Returns a hash code value for this object.samplers()Returns the value of thesamplersrecord component.final StringtoString()Returns a string representation of this record class.uniforms()Returns the value of theuniformsrecord component.vertex()Returns the value of thevertexrecord component.
-
Field Details
-
vertex
The field for thevertexrecord component. -
fragment
The field for thefragmentrecord component. -
samplers
The field for thesamplersrecord component. -
uniforms
The field for theuniformsrecord component. -
defines
The field for thedefinesrecord 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 aShaderProgramConfigrecord class.- Parameters:
vertex- the value for thevertexrecord componentfragment- the value for thefragmentrecord componentsamplers- the value for thesamplersrecord componentuniforms- the value for theuniformsrecord componentdefines- the value for thedefinesrecord 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 thevertexrecord component.- Returns:
- the value of the
vertexrecord component
-
fragment
Returns the value of thefragmentrecord component.- Returns:
- the value of the
fragmentrecord component
-
samplers
Returns the value of thesamplersrecord component.- Returns:
- the value of the
samplersrecord component
-
uniforms
Returns the value of theuniformsrecord component.- Returns:
- the value of the
uniformsrecord component
-
defines
Returns the value of thedefinesrecord component.- Returns:
- the value of the
definesrecord component
-