Record Class GuiAnimationTimeline.Scroll
java.lang.Object
java.lang.Record
com.render.api.gui.GuiAnimationTimeline.Scroll
- All Implemented Interfaces:
GuiAnimationTimeline
- Enclosing interface:
GuiAnimationTimeline
public static record GuiAnimationTimeline.Scroll(ScrollContainerComponent source, GuiScrollSnapType.Axis axis)
extends Record
implements GuiAnimationTimeline
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuiAnimationTimeline
GuiAnimationTimeline.GameTime, GuiAnimationTimeline.RealTime, GuiAnimationTimeline.Scroll, GuiAnimationTimeline.ViewProgress -
Field Summary
Fields inherited from interface GuiAnimationTimeline
GAME_TIME, REAL_TIME -
Constructor Summary
ConstructorsConstructorDescriptionScroll(ScrollContainerComponent source, GuiScrollSnapType.Axis axis) Creates an instance of aScrollrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaxis()Returns the value of theaxisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatprogress()Returns normalized progress, orFloat.NaNfor clock timelines.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Scroll
Creates an instance of aScrollrecord class.- Parameters:
source- the value for thesourcerecord componentaxis- the value for theaxisrecord component
-
-
Method Details
-
progress
public float progress()Description copied from interface:GuiAnimationTimelineReturns normalized progress, orFloat.NaNfor clock timelines.- Specified by:
progressin interfaceGuiAnimationTimeline
-
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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
axis
Returns the value of theaxisrecord component.- Returns:
- the value of the
axisrecord component
-