Record Class NativeUiAnimations.Track
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiAnimations.Track
- Enclosing class:
NativeUiAnimations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatdelay()Returns the value of thedelayrecord component.floatduration()Returns the value of thedurationrecord component.easing()Returns the value of theeasingrecord component.final booleanIndicates whether some other object is "equal to" this one.floatfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.floatto()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.floatvalue(double elapsed)
-
Constructor Details
-
Track
Creates an instance of aTrackrecord class.- Parameters:
from- the value for thefromrecord componentto- the value for thetorecord componentduration- the value for thedurationrecord componentdelay- the value for thedelayrecord componenteasing- the value for theeasingrecord component
-
-
Method Details
-
value
public float value(double elapsed) -
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. -
from
public float from()Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
public float to()Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
duration
public float duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
delay
public float delay()Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-
easing
Returns the value of theeasingrecord component.- Returns:
- the value of the
easingrecord component
-