Record Class ImmutableGlDeviceFeatures
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.blaze3d.opengl.ImmutableGlDeviceFeatures
- All Implemented Interfaces:
GpuDeviceFeatures
@Internal
public record ImmutableGlDeviceFeatures(boolean logicOp)
extends Record
implements GpuDeviceFeatures
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
The field for thelogicOp
record component. -
Constructor Summary
ConstructorsConstructorDescriptionImmutableGlDeviceFeatures
(boolean logicOp) Creates an instance of aImmutableGlDeviceFeatures
record class.ImmutableGlDeviceFeatures
(GpuDeviceFeatures features) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
logicOp()
Returns the value of thelogicOp
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
logicOp
private final boolean logicOpThe field for thelogicOp
record component.
-
-
Constructor Details
-
ImmutableGlDeviceFeatures
-
ImmutableGlDeviceFeatures
public ImmutableGlDeviceFeatures(boolean logicOp) Creates an instance of aImmutableGlDeviceFeatures
record class.- Parameters:
logicOp
- the value for thelogicOp
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 with '=='. -
logicOp
public boolean logicOp()Returns the value of thelogicOp
record component.- Specified by:
logicOp
in interfaceGpuDeviceFeatures
- Returns:
- the value of the
logicOp
record component
-