Package net.minecraft.client.gl
Record Class ShaderProgramDefinition
java.lang.Object
java.lang.Record
net.minecraft.client.gl.ShaderProgramDefinition
- Record Components:
- vertex-
- fragment-
- samplers-
- uniforms-
- defines-
@Environment(CLIENT)
public record ShaderProgramDefinition(Identifier vertex, Identifier fragment, List<ShaderProgramDefinition.Sampler> samplers, List<ShaderProgramDefinition.Uniform> uniforms, Defines defines)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/client/gl/ShaderProgramDefinition- intermediary - net/minecraft/class_10157- official - gms- named - vertex- intermediary - comp_3116- official - b- named - fragment- intermediary - comp_3117- official - c- named - samplers- intermediary - comp_3118- official - d- named - uniforms- intermediary - comp_3119- official - e- named - defines- intermediary - comp_3120- official - f
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ShaderProgramDefinition> private final DefinesThe field for thedefinesrecord component.private final IdentifierThe field for thefragmentrecord component.private final List<ShaderProgramDefinition.Sampler> The field for thesamplersrecord component.private final List<ShaderProgramDefinition.Uniform> The field for theuniformsrecord component.private final IdentifierThe field for thevertexrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionShaderProgramDefinition(Identifier identifier, Identifier identifier2, List<ShaderProgramDefinition.Sampler> list, List<ShaderProgramDefinition.Uniform> list2, Defines defines) 
- 
Method SummaryModifier 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- 
vertexThe field for thevertexrecord component.
- 
fragmentThe field for thefragmentrecord component.
- 
samplersThe field for thesamplersrecord component.
- 
uniformsThe field for theuniformsrecord component.
- 
definesThe field for thedefinesrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/client/gl/ShaderProgramDefinition;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_53949- Lnet/minecraft/class_10157;field_53949:Lcom/mojang/serialization/Codec;- official - a- Lgms;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
ShaderProgramDefinitionpublic ShaderProgramDefinition(Identifier identifier, Identifier identifier2, List<ShaderProgramDefinition.Sampler> list, List<ShaderProgramDefinition.Uniform> list2, Defines defines) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
vertexReturns the value of thevertexrecord component.- Returns:
- the value of the vertexrecord component
 
- 
fragmentReturns the value of thefragmentrecord component.- Returns:
- the value of the fragmentrecord component
 
- 
samplersReturns the value of thesamplersrecord component.- Returns:
- the value of the samplersrecord component
 
- 
uniformsReturns the value of theuniformsrecord component.- Returns:
- the value of the uniformsrecord component
 
- 
definesReturns the value of thedefinesrecord component.- Returns:
- the value of the definesrecord component
 
 
-