Record Class ScreenEffectDefinition.UniformValue
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.api.client.effect.ScreenEffectDefinition.UniformValue
- Record Components:
components- the value's floats,ScreenEffectDefinition.UniformType.components()of them; a matrix column by column
- Enclosing class:
ScreenEffectDefinition
public static record ScreenEffectDefinition.UniformValue(ScreenEffectDefinition.UniformType type, float[] components)
extends Record
A uniform's value.
-
Constructor Summary
ConstructorsConstructorDescriptionUniformValue(ScreenEffectDefinition.UniformType type, float[] components) Creates an instance of aUniformValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]Returns the value of thecomponentsrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
UniformValue
Creates an instance of aUniformValuerecord class.- Parameters:
type- the value for thetyperecord componentcomponents- the value for thecomponentsrecord component
-
-
Method Details
-
components
public float[] components()Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-