Record Class GlDevice.ShaderCompilationKey
java.lang.Object
java.lang.Record
com.mojang.blaze3d.opengl.GlDevice.ShaderCompilationKey
- Enclosing class:
GlDevice
private static record GlDevice.ShaderCompilationKey(Identifier id, ShaderType type, ShaderDefines defines)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ShaderDefinesThe field for thedefinesrecord component.private final IdentifierThe field for theidrecord component.private final ShaderTypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateShaderCompilationKey(Identifier id, ShaderType type, ShaderDefines defines) Creates an instance of aShaderCompilationKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefines()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.id()Returns the value of theidrecord component.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
id
The field for theidrecord component. -
type
The field for thetyperecord component. -
defines
The field for thedefinesrecord component.
-
-
Constructor Details
-
ShaderCompilationKey
Creates an instance of aShaderCompilationKeyrecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componentdefines- the value for thedefinesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
defines
Returns the value of thedefinesrecord component.- Returns:
- the value of the
definesrecord component
-