Package net.minecraft.client.gl
Record Class ShaderProgramKey
java.lang.Object
java.lang.Record
net.minecraft.client.gl.ShaderProgramKey
- Record Components:
configId-vertexFormat-defines-
@Environment(CLIENT)
public record ShaderProgramKey(Identifier configId, VertexFormat vertexFormat, Defines defines)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/gl/ShaderProgramKeyintermediary net/minecraft/class_10156official gmcnamed configIdintermediary comp_3113official anamed vertexFormatintermediary comp_3114official bnamed definesintermediary comp_3115official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theconfigIdrecord component.private final DefinesThe field for thedefinesrecord component.private final VertexFormatThe field for thevertexFormatrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionShaderProgramKey(Identifier identifier, VertexFormat vertexFormat, Defines defines) -
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
-
ShaderProgramKey
-
-
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
-