Package net.minecraft.client.renderer
Record Class ShaderProgram
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.ShaderProgram
public record ShaderProgram(ResourceLocation configId, VertexFormat vertexFormat, ShaderDefines defines)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocation
The field for theconfigId
record component.private final ShaderDefines
The field for thedefines
record component.private final VertexFormat
The field for thevertexFormat
record component. -
Constructor Summary
ConstructorsConstructorDescriptionShaderProgram
(ResourceLocation configId, VertexFormat vertexFormat, ShaderDefines defines) Creates an instance of aShaderProgram
record class. -
Method Summary
Modifier and TypeMethodDescriptionconfigId()
Returns the value of theconfigId
record component.defines()
Returns the value of thedefines
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.toString()
Returns a string representation of this record class.Returns the value of thevertexFormat
record component.
-
Field Details
-
configId
The field for theconfigId
record component. -
vertexFormat
The field for thevertexFormat
record component. -
defines
The field for thedefines
record component.
-
-
Constructor Details
-
ShaderProgram
Creates an instance of aShaderProgram
record class.- Parameters:
configId
- the value for theconfigId
record componentvertexFormat
- the value for thevertexFormat
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)
. -
configId
Returns the value of theconfigId
record component.- Returns:
- the value of the
configId
record component
-
vertexFormat
Returns the value of thevertexFormat
record component.- Returns:
- the value of the
vertexFormat
record component
-
defines
Returns the value of thedefines
record component.- Returns:
- the value of the
defines
record component
-