Record Class Timeline.Track<T,Arg>
java.lang.Object
java.lang.Record
net.minestom.server.world.timeline.Timeline.Track<T,Arg>
- Enclosing interface:
Timeline
public static record Timeline.Track<T,Arg> (EnvironmentAttribute.Modifier<T,Arg> modifier, List<Timeline.Keyframe<Arg>> keyframes, EaseFunction ease)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTrack(EnvironmentAttribute.Modifier<T, Arg> modifier, List<Timeline.Keyframe<Arg>> keyframes, EaseFunction ease) Creates an instance of aTrackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,Arg> Codec <Timeline.Track<T, Arg>> codec(EnvironmentAttribute<T> attribute) ease()Returns the value of theeaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyframesrecord component.modifier()Returns the value of themodifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Track
public Track(EnvironmentAttribute.Modifier<T, Arg> modifier, List<Timeline.Keyframe<Arg>> keyframes, EaseFunction ease) Creates an instance of aTrackrecord class.- Parameters:
modifier- the value for themodifierrecord componentkeyframes- the value for thekeyframesrecord componentease- the value for theeaserecord component
-
-
Method Details
-
codec
-
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). -
modifier
Returns the value of themodifierrecord component.- Returns:
- the value of the
modifierrecord component
-
keyframes
Returns the value of thekeyframesrecord component.- Returns:
- the value of the
keyframesrecord component
-
ease
Returns the value of theeaserecord component.- Returns:
- the value of the
easerecord component
-