Package com.mojang.blaze3d.opengl
Record Class GlDevice.ShaderCompilationKey
java.lang.Object
java.lang.Record
com.mojang.blaze3d.opengl.GlDevice.ShaderCompilationKey
- Enclosing class:
GlDevice
static record GlDevice.ShaderCompilationKey(ResourceLocation id, ShaderType type, ShaderDefines defines)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ShaderDefines
The field for thedefines
record component.private final ResourceLocation
The field for theid
record component.private final ShaderType
The field for thetype
record component. -
Constructor Summary
ConstructorsConstructorDescriptionShaderCompilationKey
(ResourceLocation id, ShaderType type, ShaderDefines defines) Creates an instance of aShaderCompilationKey
record class. -
Method Summary
Modifier and TypeMethodDescriptiondefines()
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.id()
Returns the value of theid
record component.toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Field Details
-
id
The field for theid
record component. -
type
The field for thetype
record component. -
defines
The field for thedefines
record component.
-
-
Constructor Details
-
ShaderCompilationKey
ShaderCompilationKey(ResourceLocation id, ShaderType type, ShaderDefines defines) Creates an instance of aShaderCompilationKey
record class.- Parameters:
id
- the value for theid
record componenttype
- the value for thetype
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)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
defines
Returns the value of thedefines
record component.- Returns:
- the value of the
defines
record component
-