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 gmd
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 Summary
Modifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ShaderProgramDefinition> private final Defines
The field for thedefines
record component.private final Identifier
The field for thefragment
record component.private final List
<ShaderProgramDefinition.Sampler> The field for thesamplers
record component.private final List
<ShaderProgramDefinition.Uniform> The field for theuniforms
record component.private final Identifier
The field for thevertex
record component. -
Constructor Summary
ConstructorDescriptionShaderProgramDefinition
(Identifier identifier, Identifier identifier2, List<ShaderProgramDefinition.Sampler> list, List<ShaderProgramDefinition.Uniform> list2, Defines defines) -
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
- 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
Lgmd;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 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
-