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 ShaderDefinesThe field for thedefinesrecord component.private final ResourceLocationThe field for theidrecord component.private final ShaderTypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionShaderCompilationKey(ResourceLocation 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
ShaderCompilationKey(ResourceLocation id, ShaderType type, ShaderDefines defines) 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
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 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
-