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 ResourceLocationThe field for theconfigIdrecord component.private final ShaderDefinesThe field for thedefinesrecord component.private final VertexFormatThe field for thevertexFormatrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionShaderProgram(ResourceLocation configId, VertexFormat vertexFormat, ShaderDefines defines) Creates an instance of aShaderProgramrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfigId()Returns the value of theconfigIdrecord component.defines()Returns the value of thedefinesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.Returns the value of thevertexFormatrecord component.
-
Field Details
-
configId
The field for theconfigIdrecord component. -
vertexFormat
The field for thevertexFormatrecord component. -
defines
The field for thedefinesrecord component.
-
-
Constructor Details
-
ShaderProgram
Creates an instance of aShaderProgramrecord class.- Parameters:
configId- the value for theconfigIdrecord componentvertexFormat- the value for thevertexFormatrecord 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). -
configId
Returns the value of theconfigIdrecord component.- Returns:
- the value of the
configIdrecord component
-
vertexFormat
Returns the value of thevertexFormatrecord component.- Returns:
- the value of the
vertexFormatrecord component
-
defines
Returns the value of thedefinesrecord component.- Returns:
- the value of the
definesrecord component
-