Record Class EvalConstant
java.lang.Object
java.lang.Record
cromveil.combatnumbers.client.animation.eval.EvalConstant
- All Implemented Interfaces:
Eval
-
Constructor Summary
ConstructorsConstructorDescriptionEvalConstant(float[] values) Creates an instance of aEvalConstantrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatendValue(int charIdx) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatsample(int charIdx, float t) final StringtoString()Returns a string representation of this record class.float[]values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
EvalConstant
public EvalConstant(float[] values) Creates an instance of aEvalConstantrecord class.- Parameters:
values- the value for thevaluesrecord component
-
-
Method Details
-
sample
-
endValue
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
values
public float[] values()Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-