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/ShaderProgramDefinitionintermediary net/minecraft/class_10157official gmsnamed vertexintermediary comp_3116official bnamed fragmentintermediary comp_3117official cnamed samplersintermediary comp_3118official dnamed uniformsintermediary comp_3119official enamed definesintermediary comp_3120official f
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionShaderProgramDefinition(Identifier identifier, Identifier identifier2, List<ShaderProgramDefinition.Sampler> list, List<ShaderProgramDefinition.Uniform> list2, Defines defines) -
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
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/gl/ShaderProgramDefinition;CODEC:Lcom/mojang/serialization/Codec;intermediary field_53949Lnet/minecraft/class_10157;field_53949:Lcom/mojang/serialization/Codec;official aLgms;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
ShaderProgramDefinition
public ShaderProgramDefinition(Identifier identifier, Identifier identifier2, List<ShaderProgramDefinition.Sampler> list, List<ShaderProgramDefinition.Uniform> list2, Defines defines)
-
-
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
-