Record Class ColorGradient.GradientStep
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.util.color.ColorGradient.GradientStep
- Enclosing class:
ColorGradient
-
Constructor Summary
ConstructorsConstructorDescriptionGradientStep(Color color, float pos, Easing easing) Creates an instance of aGradientSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.easing()Returns the value of theeasingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatpos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GradientStep
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
pos
public float pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
easing
Returns the value of theeasingrecord component.- Returns:
- the value of the
easingrecord component
-